Implemented document deletion from the UI