Implemented delete functionallity