added delete function for current user's pendingtasks