# Delete organization API key div strong 🔨 In Development — This section is still being developed and may change. Soft-delete an organization API key. Deleted keys remain visible in audit logs and listing responses (marked as deleted) but can no longer be used for authentication. #### Path Parameters **`organization_id`** string required Organization scope. **`api_key_id`** string required Identifier of the API key (prefixed with `apk_`). ## Returns No content. The key is marked as deleted and cannot be used for future requests. ## Request example ```bash curl -X DELETE "https://api.freddy.aitronos.com/v1/organizations/ORG_1234567890abcdef/api/apk_7f21a9d94e6f48b1" \ -H "Authorization: Bearer $FREDDY_API_KEY" ``` ```python import requests response = requests.delete( "https://api.freddy.aitronos.com/v1/organizations/ORG_1234567890abcdef/api/apk_7f21a9d94e6f48b1", headers={"Authorization": f"Bearer {api_key}"} ) response.raise_for_status() print("API key deleted") ``` ```javascript const response = await fetch( 'https://api.freddy.aitronos.com/v1/organizations/ORG_1234567890abcdef/api/apk_7f21a9d94e6f48b1', { method: 'DELETE', headers: { 'Authorization': `Bearer ${apiKey}` } } ); if (!response.ok) { throw new Error('Failed to delete API key'); } console.log('API key deleted'); ``` ## Related resources - [List organization API keys](/docs/api-reference/organizations/management/api-keys/list) - [Manage API key status](/docs/api-reference/organizations/management/api-keys/status) - [Get organization API key usage](/docs/api-reference/organizations/analytics/get-api-key-usage)