Completed the delete method