--- title: Delete an API key --- Deletes an existing API key. ## Access control - [Permission level](/reference/backend/api/rbac) `4` or higher is required to delete an API key ## Endpoints Deleting an API key is possible via these endpoints: | Method | Path | Authentication | | --------: | :--- | :------------- | | | `/apikeys/:id/jwt` | [JSON Web Token](/reference/backend/api/authentication#jwt-authentication) | | | `/apikeys/:id/key` | [API Key & Secret](/reference/backend/api/authentication#key-authentication) | ## Request URL The URL should contain the ID of the API key you wish to remove. It replaces the `:id` placeholder in the [endpoints listed above](#endpoints). ## Response status codes Possible status codes for these endpoints are: | Status code | Description | | ----------: | :---------- | | | success | | | the request was malformed | | | the request lacks authentication | | | authentication failed | | | server error | ## Example request ```js await axios.delete( 'https://backend.freesewing.org/apikeys/7ea12968-7758-40b6-8c73-75cc99be762b/jwt', { headers: { Authorization: `Bearer ${token}` } } ) ``` ## Example response ```204.json ``` These endpoints return status code (no content) on success, with no response body.