/v1/workspaces/{workspace_id}/domains/{domain_id}/share-links/{link_id}AuthRevoke a share link.
The public page and its downloads answer 404 from now on. Revoking an already revoked or expired link succeeds and changes nothing.
Path parameters
workspace_id*string · uuidId of the workspace.
domain_id*string · uuidId of the domain.
link_id*string · uuidId of the link.
Response · 204
Revoked.
Example
Request
DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/domains/{domain_id}/share-links/{link_id}
Authorization: Bearer YOUR_TOKENimport { Mail } from "@productcraft/mail";
// Reads PRODUCTCRAFT_API_KEY from the environment
const mail = new Mail();
await mail.domains.shareLinks.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");mail.domains.shareLinks.delete(domainId, linkId, options?): void