Delete Certificates
Organizations
Delete Certificates
Delete CSD certificate and private key from an organization
DELETE
Delete Certificates
Description
Deletes the CSD (Certificado de Sello Digital) certificate and private key files from an organization. This removes the files from S3 and clears all certificate metadata from the database. Only the organization owner can perform this action.Authorization
Bearer token for authentication
Path Parameters
The unique ID of the organization
Example Request
Response Codes
Certificates deleted successfully
No certificates found to delete
Authentication required
Access denied. Only organization owners can delete certificates
Organization not found
Security
⚠️ OWNER ONLY: Only the organization OWNER can delete CSD certificates. Admins and members cannot perform this action. ⚠️ IRREVERSIBLE: This action permanently deletes the certificate files from S3. Make sure you have backup copies before deleting.Notes
- This operation deletes both the certificate (.cer) and private key (.key) files
- All certificate metadata is cleared from the database (serial number, expiration date, password)
- The organization will not be able to sign invoices until new certificates are uploaded
- Returns 400 if no certificates exist for the organization