How to Uninstall Packages from Ubuntu with APT, Snap, and App Center

Illustration of APT, Snap, and App Center package routes converging on one removal action.

If you uninstall packages from Ubuntu and still see vsftpd.conf under /etc, Ubuntu’s package manager may have left its configuration behind.[5][8] I simulated APT (Advanced Package Tool) removal and purge for tree, and the output separated the named package from auto-removable dependencies.

Which remover matches the installation?

An application name can refer to a Debian package or a Snap, and Ubuntu’s App Center can list either format. Choose the same package system that installed the copy you want gone.

Installed copyUseWhat the choice changes
APT or Debian packageAPTRemove the package, or purge its system configuration too.
SnapSnapRemove the Snap and decide whether snapd should save a data snapshot.
App Center entryApp Center → Manage → UninstallSelect the listed package and read any dependency warning before confirming.

The App Center can show both Snap and Debian package formats, with the Snap listing first when both are available.[11] If you installed a local Debian package (.deb), its filename may differ from the package name in the installed-package list.[12]

See the local Debian package installation steps to identify that copy. The Slack installation guide shows another application with several package formats.

Check how Ubuntu installed the app

The display name and package name can differ. Find the exact entry first, then use its package-manager name in the removal command.

apt list --installed 2>/dev/null | grep -i '^tree/'
snap list

The APT result puts the package name before the slash. In the Snap result, use the Name column.[21]

I matched the APT example to the exact package string returned by the installed-package query, so the later preview checks the same package rather than a display label.

If neither list shows the application, it may be an AppImage, which runs from a standalone file outside APT and Snap. See the Ubuntu installed-package reference for broader APT query options.

Remove a Debian package with APT

I compared APT’s remove and purge simulations for tree. The remove plan lists tree for removal, and the purge plan marks it for purging while APT lists automatically installed packages separately.

sudo apt remove --simulate tree
sudo apt purge --simulate tree

APT lists packages marked as automatically installed and no longer required separately from the package named in the removal plan. That notice reflects this machine’s package history, so your list can differ.

APT simulation preview shows tree as the package to remove and lists auto-removable dependencies separately.
APT marks tree for removal and lists auto-installed dependencies separately in this preview.

Here, tree is the only entry in the “will be REMOVED” list. Cancel if the list names an application or package you need, and run the chosen command again without –simulate only after the plan is clear.

APT remove can leave package configuration in system directories.[8] Dpkg purge removes tracked configuration files (conffiles) and system-directory data cleaned up by the package’s removal script, but it leaves per-user configuration written to individual home directories.[22]

For the related package-state checks, see the APT remove and purge guide.

I chose purge only for the configuration-removal case. APT’s autoremove command is separate: it removes packages marked as automatically installed when nothing else needs them, so it is not a substitute for naming the application you want to uninstall.[12]

sudo apt autoremove --simulate

Autoremove checks packages marked as automatically installed and no longer required, so do not append the application name. Review the full proposed list, and run the command without –simulate only when every listed package can go.

Remove a Snap and choose what happens to its data

Use the Snap name shown in snap list when you remove an application because its display name can differ from the installed Snap name.

sudo snap remove app-name
sudo snap remove --purge app-name
snap saved
sudo snap forget SET_ID

Replace app-name with the Snap name you found. A normal removal saves user, system, and configuration data for 31 days, while –purge skips a new snapshot but leaves earlier snapshots intact.[21][20]

I checked snap saved without changing the installed Snaps because that command lists existing data snapshots rather than removing a Snap.

The Set column identifies each snapshot. Replace SET_ID with that number only when the restore point is no longer needed, because snap forget permanently deletes all data in that set.[24]

Uninstall an application in App Center

Open Manage in App Center, select the installed app, and choose Uninstall. Read the dependency notice before approving the change.[11]

The Installed tab and Remove buttons shown in these frames belong to Ubuntu’s former Software interface, while current App Center uses Manage and Uninstall.

Older Ubuntu Software interface showing the Installed tab and Remove buttons
Older Software Center: Installed tab and Remove buttons. Current App Center uses Manage and Uninstall.

The older Software frame shows an authentication prompt, and current App Center requires you to read the selected application’s dependency notice before approval. Check the list before you confirm.

Administrator authentication prompt from the older Ubuntu Software removal flow
Older Software Center authorization prompt before package removal.

The older confirmation names the application selected for removal, so cancel if it is not the copy you intended to uninstall.

Package removal confirmation from the older Ubuntu Software interface
Older Software Center confirmation before removing AisleRiot Solitaire.

Current App Center warns when removing an application would also remove packages another application needs.[11] Read the dependency list and stop if it includes software you still use.

Check what remains after removal

A missing launcher does not prove that configuration or personal data is gone, since the package manager controls which files it removes.

What remainsWhat the removal command does
APT package configurationremove can leave it, while purge removes tracked configuration and package-managed system files.[8][22]
Per-user configuration filesDpkg purge does not remove configuration written to individual home directories.[22]
Automatically installed dependenciesautoremove targets packages marked automatic that are no longer required.[12]
Snap data snapshotsnapd saves one by default for 31 days, and –purge skips a new snapshot but leaves older snapshots alone.[20][21]

If vsftpd.conf remains under /etc after apt remove, the package may still be gone because APT can leave configuration behind. Use purge for package configuration and inspect per-user files separately.[5][8][22]

Review APT’s plan before confirming

For an APT package, start with a simulation and read the entire removal list. The next command should name the package APT reported, not the application’s launcher label.

sudo apt remove --simulate package-name

Replace package-name with the exact APT name and stop if the plan includes another package you want to keep. After the plan is clear, run the same command without –simulate to perform the removal.

Ubuntu package removal questions

APT, Snap, and App Center each preserve different data, so the answer depends on which manager owns the installed copy.

Can apt remove leave a configuration file behind?

Yes, APT remove can leave package configuration in system directories.[8] Dpkg purge removes tracked configuration and package-managed system data, but leaves configuration written to individual home directories.[22]

Does apt autoremove uninstall a package by name?

No. Autoremove targets packages marked as automatic when no installed package needs them, so use apt remove or apt purge for the named application and review autoremove separately.[12]

Does snap remove –purge delete snapshots that already exist?

No. Purge prevents a new automatic snapshot but leaves earlier sets in place, so check snap saved before using snap forget on one you no longer need.[20][24]

Sources

  1. [5] https://askubuntu.com/questions/147277/sudo-apt-get-remove-does-not-remove-config-files
  2. [8] https://manpages.ubuntu.com/manpages/noble/en/man8/apt.8.html
  3. [11] https://ubuntu.com/desktop/docs/en/latest/how-to/software/remove-an-application
  4. [12] https://ubuntu.com/server/docs/how-to/software/package-management
  5. [20] https://snapcraft.io/docs/explanation/security/decommissioning
  6. [21] https://snapcraft.io/docs/tutorials/get-started
  7. [22] https://manpages.ubuntu.com/manpages/noble/en/man1/dpkg.1.html
  8. [24] https://snapcraft.io/docs/how-to-guides/manage-snaps/create-data-snapshots