DELETE/v2/projects/{projectId}/keys/trash/{keyId}

Permanently delete a trashed key

Permanently deletes a localization key that is in the project's trash. Use this operation when you want to remove a trashed key rather than restore it; the key cannot be recovered after permanent deletion.

2 parameters
keyIdintegerrequired
The integer ID of the trashed key to permanently delete.
projectIdintegerrequired
The integer ID of the project containing the trashed key.

5 status codes
200Confirms that the trashed key was permanently deleted.
400Returned when a path parameter is invalid.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user does not have permission to delete the key.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the project or trashed key does not exist.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when a path value is invalid. A 401 is returned when the request is unauthenticated, a 403 when the authenticated user lacks permission, and a 404 when the project or trashed key cannot be found. The keyId and projectId path parameters must identify the trashed key and its project.