In order to remove a repository using Ubuntu's old apt-key command, you must first find the keyring file containing the repository's key and then use the rm command to remove that file.