Added the function to delete tasks