In this example we are going to create a workflow that deletes all the selected items. Before you start make sure you have enabled the Multirow Selection in the contacts grid for the view Customer: Details. Grid view control
Create a new workflow name it CustomerContact: Delete Selected Contacts and set Contact as root entity
Add show message box and set it according to screenshot.
Add cancel workflow activity to the message box with critera DialogResult = No
Add a Foreach Entity In Enumerable Activity and add it to the message box activity. Change name and set EnumerableType: Contact
Edit the branch leading into the Foreach Entity and set the ordered selection from the Sourcestep: Start as in parameter.
Add the delete entity activity to the foreach entity activity and edit the branch to set source parameter to current entity and target parameter to Entity to delete.
Also add a criteria to the branch that current entity is not null from the Foreach Activity.
Last step is to add the commit context activity to the foreach entity activity. Then save and create a command.