Skip to main content

Remove

Remove a template by ID or alias using the default context.

Parameters

string
required
The template ID or alias to delete.

Returns

Returns a *RemoveTemplateResponse confirming the deletion.

Example


RemoveWithContext

Remove a template by ID or alias with a custom context.

Parameters

context.Context
required
Context for the request, useful for timeouts and cancellation.
string
required
The template ID or alias to delete.

Returns

Returns a *RemoveTemplateResponse confirming the deletion.

Example


Types

RemoveTemplateResponse

Response from removing a template.
string
The object type, always “template”.
string
The unique identifier of the deleted template.
bool
Indicates whether the template was successfully deleted.