Not applicable

Use the following at your own risk, and by all means use them in a "sand box" environment first.

With the gs.sql command you can delete the orphan records.

In "Scripts — Background" you can run a command like
gs.sql("delete from task where sys_id="c0bea5bc4dbea000c38e14964013369d'")