Tuesday, February 9, 2010

How to delete task and its objects

Note: this operation is not reversible. Exercise caution when using this procedure.
The operation is only available to ccm_admin role.
> ccm set role ccm_admin
First delete the objects associated with a task:
ccm task -show objs
e.g.
> ccm task -show objs 223541
will return a list of all objects associated with the task.
Then collapse objects listed in the previous step:

> ccm collapse @
Once the objects are gone, delete the task itself:
ccm query -type task "name='taskXXXXX'"
ccm delete @
e.g.
>ccm query -type task "name='task223541'"
> ccm delete @

That's it.

No comments:

Post a Comment