How to Delete Repos on CentOS
If you have already downloaded all the packages that need to be installed, but if you find any packages that conflict with other programs, you will need to remove them. Removing the repositories is fairly simple. .
Steps to Delete Repos on CentOS:
Step 1: Log on to the dedicated server as the root user.
Step 2: Find the installed package name by running the following command.
rpm -qf /etc/yum.repos.d/epel.repo
epel-release-6-8.noarch
Step 3: Perform the removal of the packages and repos through the following command
yum remove epel-release
Step 4: With the following command, you can remove and clear all the cached data so you can dump a large amount of disk space
yum clean all