Implemented Delete function