[UBUNTU] How to completely remove EVERYTHING from 1 specific package?

September 5, 2017 3.4k views
DigitalOcean Control Panels Ubuntu

I want to completely remove ProFTPd and all it's files from my droplet, how do I do so from the Ubuntu console?

I have tried sudo apt-get remove and purge, but didn't seem to do anything.

I just need a 100% fresh installation from that package

1 Answer


If running as root, this will work. If not, add sudo before the commands.

apt-get remove --purge --auto-remove proftpd

Then you can search your droplet for the left over directories and files with these commands.

find -type d -name proftp
find -type f -name proftp

This will remove the directory and everything inside.

rm -rf /path/to/directory

Remove a single file.

rm /path/to/file

I hope this helps.

PS: Please take a snapshot first. Removing things from your droplet can be risky in some situations. If you delete the wrong directory or file, the world could come crashing down for you.

Have another answer? Share your knowledge.