I have created a custom list named “K2 Workflow Tutorials” in which K2 workflow will be created to delete folder. Folder will be deleted from the custom list named “K2 Workflow List”.
Go to K2 designer, drag and drop Delete Folder step from the List Item workflow steps in the ribbon interface.
Specify a site collection and specify the folder name (Delete the folder from “K2 Workflow List” which is having the “Title” field value that has to be deleted). Click on Next button.
Specify list from where the folder has to be deleted and then click on Next button.
Specify whether to use the recycle bin and then click on Finish button.
Deploy the workflow. Create a list item with title field value as “Test”. After few minutes the workflow will be completed and delete the folder from “K2 Workflow List” which is having the title field value as “Test”.