The record.delete: command deletes a record of the given type.



start:
  record.delete:
    output: results
    inputs:
      record_type: task
      record_id: 123


Syntax

inputs:

Key  
record_type: The record type to delete.
record_id: The ID of the given record type to delete.

output:

The dictionary of the deleted record will be saved to this placeholder.

on_simulate:

The commands to run during simulation instead of deleting the record.

If omitted, the record is deleted during simulation.

on_success:

The commands to run on success.

The output: placeholder is set to the dictionary of the deleted record.

on_error:

The commands to run on failure. If omitted, the automation exits in the error state.

The output: placeholder receives a dictionary with these keys:

Key  
error The error message.