fastify-x-signwell
xsignwell.templates.delete
Permanently delete a SignWell template by ID. Also available as templates.remove.
xsignwell.templates.delete
Permanently delete a SignWell template by ID. templates.remove is an alias for this method.
Signature
fastify.xsignwell.templates.delete(templateId: string): Promise<Object>
// remove is an alias for delete
Params
| Name | Type | Required | Description |
|---|---|---|---|
templateId | string | Yes | The SignWell template ID. |
Returns
The API response for the delete operation.
Throws
[xSignwell] templates.remove: templateId (string) is required— iftemplateIdis missing.- Re-throws SignWell API errors with
statusCodeandsignwellErrorproperties.
Examples
Delete a template
await fastify.xsignwell.templates.delete("tmpl_abc123");
Using the remove alias
await fastify.xsignwell.templates.remove("tmpl_abc123");
See also
- templates.get — fetch a template before deleting
- templates.list — list templates to find IDs
AI Context
package: "@xenterprises/fastify-xsignwell"
method: fastify.xsignwell.templates.delete(templateId)
use-when: Permanently delete a SignWell template by ID; remove is an alias
returns: API response for the delete operation
