After removing packages , some of them leave files behind that i don't really use , so i want to remove them rather than restoring the whole server from scratch.
sudo locate logstash
You can try this:
locate logstash | xargs rm -rf
Make sure that
locate gives you valid files that you want to delete.