Managed to get deletion of a task working