DeleteRecord is automating and simplifying the process of deleting records including child records. It deletes the multiple records using fetchXML as per condition. It is useful to delete duplicacy of records. We’ll do using a source code for delete records using the custom workflow. I will recommend you can call the on-demand workflow and run the workflow for deleting the record. You need to download a solution where plugin has already added, then run the workflow on any record as per guidance.