delete__organization_{orgId}_key_{keyId}
DELETE /organization/{idOrg}/key/{idKey}
Delete Specific Organization Key
Delete a specific organization key by its ID. This operation is irreversible and will remove the key and its associated node relationships.
Important Notes:
This operation deletes a specific key by its ID, not all keys for the organization
All associated node-key relationships are also removed (cascade delete)
This operation is irreversible - the key cannot be recovered
System events are logged for audit purposes
Any nodes using this specific key will need to re-register with a different key
Access Control:
Requires ADMINISTRATOR or OWNER role within the organization
Users can only delete keys for their own organization
Key must exist and belong to the specified organization
Security:
Key deletion is logged with detailed audit information
System events are published for monitoring and alerting
Private keys are permanently removed from the system
TypeScript Client Library
public deleteOrgKey = async (idOrg: string, keyId: string): Promise<{ success: boolean; message: string }> => {
return this.makeRequest<{ success: boolean; message: string }>(`organization/${idOrg}/key/${keyId}`, 'DELETE');
};
Code Samples
# You can also use wget
curl -X DELETE https://backend.flashback.tech/organization/{idOrg}/key/{idKey} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Parameters
idOrg
path
string
true
Organization ID that owns the key
idKey
path
string
true
Unique identifier of the specific key to delete
Example responses
200 Response
{
"success": true,
"message": "Organization key deleted successfully"
}
403 Response
{
"success": false,
"message": "Access denied: you can only manage keys for your own organization"
}
404 Response
{
"success": false,
"message": "Organization key not found or does not belong to this organization"
}
500 Response
{
"success": false,
"message": "Internal server error"
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Operation success status
» message
string
false
none
Success message
Status Code 403
» success
boolean
false
none
Operation success status
» message
string
false
none
Error message describing the permission issue
Status Code 404
» success
boolean
false
none
Operation success status
» message
string
false
none
Error message indicating key not found
Status Code 500
» success
boolean
false
none
Operation success status
» message
string
false
none
Error message describing the internal error
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?