delete method.