dpkg -P nginx

Category: Administration

dpkg -P nginx

Purge a package including its config

Removes the nginx package and deletes its configuration files, unlike dpkg -r which keeps them. Purged packages leave nothing behind except files they created at runtime. This is the standard way to remove a package completely.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.