Delete Document Library using K2 Workflow in SharePoint 2013 Online

I have created a custom list named “K2 Workflow Tutorials” in which K2 workflow will be created to delete document library. Please refer to my previous article to create a K2 workflow in SharePoint 2013 Online.

Go to K2 designer, drag and drop Delete Document Library step from the Libraries workflow steps in the ribbon interface.

 

Specify a site collection and then click on Next button.

 

Specify filters for the library to delete and then click on Next button.

 

Specify whether to use recycle bin and then click on Finish button.

 

Deploy the workflow. Create a new list item in “K2 Workflow Tutorials” list with title field value as “TEST”. After few minutes the workflow will be completed and document library which has the title as “TEST” will be deleted.