The deploy key and the webhook secret for a Git repository aren't stored with a project. They live in a repository record, which every project on that repository shares, so you set up access and the webhook once, however many branches you deploy.
You never create a repository record yourself. The app creates one when you add the first project for a repository, and later projects for the same repository join it. Two addresses count as the same repository whether you write them as HTTPS or SSH, with or without .git at the end, and in any letter case. So https://github.com/You/Site and git@github.com:you/site.git share one record.
Choose Repositories in the main menu to see every record, with:
you/site. For other Git hosts, the host and path.github, or generic for other hosts.Choose a repository to open it. Its page has three tabs:
A change to the record affects every project on the repository:
Deleting a project leaves its repository record in place, even when no other project uses it. That way, if you create a project for the same repository again, its deploy key and webhook on GitHub keep working without any changes.
Open the repository's Settings tab and choose Remove Repository. You can only remove a repository that no project uses, so delete its projects first.
Removing it deletes the deploy key and the webhook secret from your server, and can't be undone. Your repository on GitHub isn't touched: the deploy key and the webhook you added there stay until you delete them in its settings. They no longer work, since the app no longer has the private key or the secret.