How are deleting the “Sales taxes and Charges Template”? You need to delete from tabDocType and drop the table.