Last updated on 15th September 2026

Delete a global build command via API

This method deletes a global build command template from your account. The command is removed from every project it is linked to.

Tip: You can explore and test this endpoint interactively using our OpenAPI documentation.

URL

/global_build_commands/:identifier

HTTP Method

DELETE

Example cURL Request

curl -H "Accept: application/json" \
--user your-email@example.com:your-api-key \
-X DELETE \
https://test.deployhq.com/global_build_commands/df8966fe-e161-4517-98e2-24f79102dd62

Example Response

{
  "status": "deleted"
}

Error Responses

  • 401 Unauthorized - the email address or API key is missing or incorrect
  • 403 Forbidden - your user is not an account administrator
  • 404 Not Found - no global build command matches the supplied identifier