You can delete tasks by ID, for example if you have submitted confidential data by mistake.
Procedure
-
Connect to your {ProjectServer} using SSH:
# ssh root@{foreman-example-com}
-
Optional: View the task:
# hammer task info --id My_Task_ID
-
Delete the task:
# foreman-rake foreman_tasks:cleanup TASK_SEARCH="id=My_Task_ID"
-
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.