delete task spec and method