• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us

Free AI Courses With Certificate For Beginners In India

There are a variety of free AI courses with certificate for beginners in India. Whether you're looking to enhance your skills or start from scratch, you can find numerous free AI courses with … [Read More...] about Free AI Courses With Certificate For Beginners In India

Home / Uncategorized / How To Delete And Remove Repository In Ubuntu Terminal

How To Delete And Remove Repository In Ubuntu Terminal

By Sourabh / January 17, 2026 Category: Uncategorized

How to remove ppa repository on Ubuntu Linux? To delete a repository in the Ubuntu terminal, use sudo add-apt-repository –remove ppa:user/repo-name for PPAs.

Personal Package Archives for Ubuntu

Personal Package Archives (PPA) is a way to distribute software and updates to Ubuntu users. PPAs allow to upload Ubuntu source packages to be built/published as an apt repository by Launchpad.

Using PPAs Ubuntu users can install PPA packages regularly. All they have to do is to install PPAs and they’ll automatically receive updates associated with the PPA. Once installed, PPA Packages remain onto Ubuntu System until it is removed manually or they’re superseded by another package.

In simplest way, to add a PPA, we run the following command:

$ sudo add-apt-repository ppa:PPA_NAME

Where “PPA_NAME” is the name of the Personal Package Archive (PPA) you wish to add or install.

Although installing a PPA is simple, removing PPA is quite confusing for many. Luckily there are more than one methods to remove PPAs from Ubuntu. Here’s how to do this:

Method 1: Using -remove Command

PPAs can be removed using add repository command with –remove parameter. The command removes the PPA from Ubuntu repository. This method removes PPA, but it doesn’t remove or downgrade any package that have been installed using the PPA. Which means, it will only remove the PPA, but not the software or package installed using the same PPA.

Using the add repository command with –remove parameter is easy. The command takes the following format:


$ sudo add-apt-repository --remove ppa:PPA_NAME/ppa

Like the above method, the command does not delete or modify any packages installed or upgraded using the PPA.

Method 2: Downgrading PPA Using ppa-purge

This is the strongest method to remove PPAs. Unlike others, the ppa-purge method will delete a PPA as well as all packages or softwares installed/upgraded using the PPA.

To use the ppa-purge command, you will need to install ppa-purge package. To do so, run the following command:


$ sudo apt-get install ppa-purge

Once installed, run the command to remove a PPA repository and all the packages installed using it. The command takes the following format:


$ sudo ppa-purge PPA_NAME

Last but not least, You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory.

Primary Sidebar

Latest Posts

Best AI Plugins For WordPress To Use In 2026

3 Commands To Check USB Connection In Linux Terminal

Linux Terminal Commands for Beginners With Examples

How To Password Protect A Folder In Linux Command Line

Best Download Managers for Ubuntu Linux (2026 Edition)

5 Best Free Keyword Research Tools for Bloggers in 2026

How To Check Linux 32 or 64-Bit Command Line

Fix Unexpected Inconsistency By Running Fsck Manually From Initramfs

How To Delete And Remove Files Older Than 7 Days In Linux

Install and Use GitHub Desktop on Ubuntu Linux

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap