Delete task implementation