CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Safe delete

Last modified: 21 April 2022

The Safe Delete refactoring lets you safely remove files from the source code. This refactoring prevents you from uncontrolled deleting of declarations that have usages in the source code.

To make sure that deletion is safe, CLion looks for the usages of the file being deleted. If such usages are found, you can explore them and make the necessary corrections in your code before the symbol is actually deleted.