RubyMine lets you use the SafeDelete refactoring to remove files and symbols from the source code safely. Before RubyMine deletes a file or a symbol, it searches for usages and if they are found, RubyMine lets you check them to make necessary adjustments.
Select an item you want to delete.
In the dialog that opens, select necessary options and click OK.
If RubyMine encountered potential problems, it displays the Usages Detected dialog. Proceed with the appropriate action.