Skip to main content
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

string
required
Bearer token for authentication

Path Parameters

string
required
The unique ID of the organization

Example Request

Response Codes

No Content
Certificates deleted successfully
Bad Request
No certificates found to delete
Unauthorized
Authentication required
Forbidden
Access denied. Only organization owners can delete certificates
Not Found
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