Deleting task method realized