The API deletes an email template.

APISignature
deleteEmailTemplatewebService static Boolean deleteEmailTemplate(Id templateId)



Request Parameter
NameTypeDescription
templateIdIDThe ID of the email template sobject you want to delete.



Response Parameter
FieldTypeDescription
isDeletedBooleanIndicates whether the email template was deleted.


Code Sample

The sample code below enables you to delete an email template and return the status of the delete action.


/**
 * The below code demonstrates how to delete existing email template.
 */
Public Boolean deleteMailTemplate(Id templateId) 
{
	Boolean isDeleted = Apttus_Proposal.ProposalWebService.deleteEmailTemplate(templateId);
	return isDeleted;
}
CODE