implemented delete handler