Skip to main content
DELETE
/
defaultsettings
/
templates
/
{templateId}
Delete Template
curl --request DELETE \
  --url https://api.royalti.io/defaultsettings/templates/{templateId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Template deleted successfully"
}

Description

DELETE /defaultsettings/templates/ Description: Permanently delete a template. Only the template creator can delete it (unless it’s a system template). Method: DELETE Path Parameters:
ParameterTypeDescriptionRequired
templateIduuidID of template to deleteYes

Code Examples

const response = await fetch('https://api.royalti.io/defaultsettings/templates/example-id', {
  method: 'DELETE',
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

templateId
string<uuid>
required

ID of the template to delete

Response

Template deleted successfully

success
boolean
Example:

true

message
string
Example:

"Template deleted successfully"