Delete Item

The Delete Item plug-in deletes the item against which the process is running. 

NOTE: The item will not be deleted until the process has completed.

Value Pair

Description

itemid

The integer id of the item that should be deleted.

list

The name of the list containing the item that should be deleted.

query

Specifies a query to use to find the item to delete.

site

The URL of the site containing the item that should be deleted.

Example 1
This example deletes the record having column 'ename' as ‘Jack’ from the document library ‘Doclib’.

  • Site- http://svtest/docsite
  • List- Doclib
  • Query – ename ==’Jack’

Example 2
This example deletes the record based on ItemId from the document library ‘Doclib’.

  • Site- http://svtest/docsite
  • List- Doclib
  • ItemId – 4

Example 3
This example deletes the record(s) from the document library 'Doclib' based on the value in a form field.

  • Site- http://svtest/docsite
  • List- Doclib
  • Query- Title==[//my:queryField]

    Note: Spaces are not allowed in a field name. If you need to use spaces in a field name, then add square brackets around the field name like this: [Field Name]