Added a call to the delete method.