Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, you will get a 403 Forbidden response.
🟠403If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response: