Delete a repository deploy key
DELETE
/repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
This deletes a deploy key from a repository.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” key_id
required
string
The key ID matching the deploy key.
repo_slug
required
string
This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example: {repository UUID}.
workspace
required
string
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}.
Responses
Section titled “ Responses ”The key has been deleted
If the current user does not have permission to delete a key for the specified user
If the specified user, repository, or deploy key does not exist
Media type application/json
Error
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
type
required
string
error
object
message
required
string
detail
string
data
Optional structured data that is endpoint-specific.
object
key
additional properties
any
key
additional properties
any
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}