Implemented remove command for the editor