delete https://api.onesignal.com/templates/?app_id=
Delete templates from OneSignal.
Overview
This endpoint lets you delete an existing template. This will immediately remove the template in OneSignal. Special consideration for templates used in Journeys: Templates that are in use by a Journey cannot be deleted until the Journey itself, has been deleted.
How to use this API
This endpoint deletes a single template associated with a specific app. The response returns confirmation that the template was removed successfully.
Template ID
To delete a specific template, it must be identifiable via the required template_id path parameter. This is the UUID found in the URL, when viewing the template you intend to view. This is added as a path parameter in your request.
Example
Deleting a template
curl --location --request DELETE 'https://api.onesignal.com/templates/<Template ID>?app_id=<APP ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \