# Delete API key **DELETE /users/auth/keys/{api_key_id}** Delete or invalidate the API key. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **api_key_id** (string) The API Key ID. ## Responses ### 200 The API key is deleted. #### Body: application/json (object) object ### 404 The {api_key_id} can't be found. (code: `api_keys.key_not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)