Implemented the delete function from manage.