delete method working