SharePoint delete drafts

Nintex external platform is required for this feature. For details, see Enable Nintex external platform features.

Deletes any drafts or minor versions of items in a SharePoint 2010, SharePoint 2013, or Office 365 SharePoint document library.

Note: Document version history must be enabled for major and minor (draft) versions on the document library. Not available for SharePoint 2007 sites.

Action settings

Following are the fields and options visible in the configuration settings dialog box for this action.

Section Field Description

(unlabeled)

Destination site URL

The URL of the destination site where the items to be deleted are located.

 

List name

The name of the document library containing the drafts to be deleted.

 

Drafts to delete

Specify a query to determine which drafts are to be deleted, specify whether or not to delete drafts for items within subfolders, and add filters to the query.

Select one of the following items for the query.

  • Query builder: Build a query to filter for drafts to delete. View the CAML at any time by switching to the CAML Editor mode.
  • CAML editor: Create a more advanced query using XML encoding.

Select or clear the following check box.

  • Include subfolders: When selected, deletes drafts for items within subfolders.

Select one of the following for Filters.

  • Delete all drafts: Deletes drafts for all items in the document library.
  • Delete drafts only when the following is true: Deletes drafts based on the list item's column values.
    • Delete the drafts when column / When column:: Specify a column, select an operator, and specify a value.

    • Add filter rule: Add a filter.
    • Delete (): Delete a filter. Displayed for second and subsequent filters.
    • And / Or: Specify how to group sequential filters.

Credentials

Authentication mode The mode to authenticate against the destination site.

 

Username

Specify a username with permissions to delete drafts in the document library.

 

Password

Specify the password for the above username.

 

Domain or SharePoint Online website domain

Specify the domain for the username if using Windows authentication mode, or specify the SharePoint Online domain URL if connecting to an Office 365 SharePoint Online site.

(unlabeled)

Output

Store output for this action using the following selections.

  • All matched drafts deleted: Specify a Yes/No variable to store whether or not all matched drafts have been deleted. Returns "Yes" if all matched items were successfully deleted.
  • List item ID: Specify a collection variable to store the ID of the items that have had drafts deleted.
  • List item URL: Specify a collection variable to store the URL of the items that have had drafts deleted.