X Enterprises
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

NameTypeRequiredDescription
templateIdstringYesThe SignWell template ID.

Returns

The API response for the delete operation.

Throws

  • [xSignwell] templates.remove: templateId (string) is required — if templateId is missing.
  • Re-throws SignWell API errors with statusCode and signwellError properties.

Examples

Delete a template

await fastify.xsignwell.templates.delete("tmpl_abc123");

Using the remove alias

await fastify.xsignwell.templates.remove("tmpl_abc123");

See also


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
Copyright © 2026