Class DeleteItemCommand

  • All Implemented Interfaces:
    ExecutableCommand

    public class DeleteItemCommand
    extends ExecutableCommandWrapper
    implements ExecutableCommand

    Deletes an Item that exists in the Integrity database.

    Notes:

    • You should use this command with extreme care, as the Item will be permanently deleted from the database and no confirmation will occur when executing this command.
    • This command doesn't work with Live Items and Versioned Items, which can't be deleted.

    Usage:

     new DeleteItemCommand(myItem).execute();
     
    • Constructor Detail

      • DeleteItemCommand

        public DeleteItemCommand​(Item item)
        Instantiates a command to delete an item in the database.
        Parameters:
        item - the item to delete.