Skip to main content

Delete Organization

This page contains information intended for the Discontinued Organization Plans.

If you are using Flexible/Enterprise plan, please visit this page.

DELETE https://deploygate.com/api/organizations/{ORGANIZATION_NAME}

This process will allow you to delete your Organization.


Caution
  • When deleting your Organization, all teams and applications contained within that Organizations are also deleted.
  • Organizations created for Startup, Business, and Large Business Plans under contract cannot be deleted. PayPal and/or invoices must be settled and cancelled for the contract to be terminated.
  • The Organization's API Key cannot be used. Please use the API Key of a user who is an Owner of the Organization.

Path Params​

NameTypeRequiredDescription
ORGANIZATION_NAMEstringtrueOrganization Name

Example​

curl \
-X DELETE \
--url "https://deploygate.com/api/organizations/${ORGANIZATION_NAME}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}"

Result 200​

{
"error": false,
"results": {
"message": "The organization was removed successfully"
}
}

Result 403 - When Accessed with an Organization's API Key​

{
"invalid_params": null,
"message": "Only User API keys are allowed",
"error": true,
"because": "Only User API keys are allowed",
"error_type": "non_user_api_key"
}

Result 403 - When Accessed with a Non-Owner User's API Key​

{
"invalid_params": null,
"message": "this actor does not have permission to perform this action.",
"error": true,
"because": "this actor does not have permission to perform this action.",
"error_type": "forbidden_action"
}

Result 404​

{
"invalid_params": null,
"message": "Organization not found",
"error": true,
"because": "Organization not found",
"error_type": "common_not_found"
}