While performing the CRUD operation, I have checked the delete permission before deleting a record, but it still shows CRUD Delete Issue. Herewith I have attached my code. Can anyone help me with this?
if(Schema.SobjectType.Tracking_path__c.isdeletable())
{
Delete tpList;
}
else
{
ApexPages.addMessage(new ApexPages.message(ApexPages.severity.FATAL, system.label.delete_access));
return null;
}