https://ostechnix.com/how-to-delete-a-repository-and-gpg-key-in-ubuntu/#:~:text=To delete a software repository,repository entry and delete it.&text=As you can see in,repository in my Ubuntu system.&text=To delete this repository%2C simply remove the entry.

# remove it from:
/etc/apt/sources.list