implementing Tasks::delete()