{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"If the repository only has one deployment, you can delete the deployment regardless of its status. If the repository has more than one deployment, you can only delete inactive deployments. This ensures that repositories with multiple deployments will always have an active deployment.\n\nTo set a deployment as inactive, you must:\n\n*   Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.\n*   Mark the active deployment as inactive by adding any non-successful deployment status.\n\nFor more information, see \"[Create a deployment](https://docs.github.com/rest/deployments/deployments/#create-a-deployment)\" and \"[Create a deployment status](https://docs.github.com/rest/deployments/statuses#create-a-deployment-status).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"deployment_id":{"type":"integer","description":"deployment_id parameter"}},"required":["owner","repo","deployment_id"],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"Delete a deployment","id":"github.repos.delete-deployment","example":{"path":{"owner":"octocat","repo":"hello-world","deployment_id":1}},"maxRequests":1,"summary":false}}