public function deleteTemplate($templateId) { // check if record exists if (!$this->existsTemplate($templateId)) { return false; } // make the call return (bool) $this->doCall('templates/' . $templateId, null, 'DELETE'); }