Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 852 Bytes

proc_deleting_a_task_by_id.adoc

File metadata and controls

32 lines (30 loc) · 852 Bytes

Deleting a Task by ID

You can delete tasks by ID, for example if you have submitted confidential data by mistake.

Procedure
  1. Connect to your {ProjectServer} using SSH:

    # ssh root@{foreman-example-com}
  2. Optional: View the task:

    # hammer task info --id My_Task_ID
  3. Delete the task:

    # foreman-rake foreman_tasks:cleanup TASK_SEARCH="id=My_Task_ID"
  4. Optional: Ensure the task has been removed from {ProjectServer}:

    # hammer task info --id My_Task_ID

    Note that because the task is deleted, this command returns a non-zero exit code.