Delete Items On SharePoint Online And Office 365 Using Nintex Workflows

Welcome to an article on how to use the action "Office 365 delete items" on SharePoint Online and Office 365 using Nintex Workflows. This article will display the action “Office 365 delete items.” Here, we will see how to configure this action and use it for our work.

Using this action, you can delete the items from your desired list or the library hosted in Office 365.

Let’s see the implementation of this functionality.

 

  • I have created a document library “Dev Document”. In Dev Document, click the Library tab on the top ribbon and click Nintex Workflows.



  • You will see the following screen to create a new Workflow.

  • Click “Create new workflow”.


  • You will come to the design phase of Nintex Workflows.



  • Add the “Office 365 delete items”  acition by right clicking on the Workflow or by dragging and dropping from the left toolbox.



  • Now, let’s configure it.

  • When you double click on the action, the following screen opens up.




    Configuration

    • Destination site URL - Provide the site URL.
    • List Name - Specify the name of the list.
    • Items to delete - You can use a query to delete the items by using a query builder or a CAML editor. Here, you can configure - whether you want the folders to be included, based on your library or not.
      You can also use the filters to apply the rules to specify the condition based on which you can delete the items.



    • SharePoint Online URL - Provide the site URL.
    • Username - Provide the site user name.
    • Password - Specify the password.
    • All Matched Items are deleted - Here, you can add a variable to store the value ‘Yes’, if all the matched items are deleted.

  • Now, we have configured our Workflow. Let’s go and publish it to use it.

  • Click Publish on the left corner of the ribbon of Nintex Designer.



  • You will see the screen, shown below:



  • Give your Workflow a name.
  • Description.

  • Choose your task list, where it should store the tasks; it will be Workflow Tasks by default.

  • Choose your history list where it should store the history logs; it will be Workflow History by default.

  • Start Options,

    • You can either start your Workflow manually,
    • Or you can start your Workflow automatically when an item is created, I will select this option to create automatically when an item is created.
    • Or you can start your Workflow automatically when an item is modified.

  • Click Publish.

  • Your Workflow will be published.

    Once you configure, the Workflow will automate the process of deleting the items from the list or document of the library as per your condition.

Hence, in this article, we saw how to delete the items, using the action Office 365 delete items in SharePoint Online and Office 365, using Nintex Workflows. We will see more new articles on the actions of Nintex Workflows in the other parts of the article series. Until then, keep learning!