adding delete to pendingtask