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

Remove Unused References

Last modified: 23 May 2023

This command allows cleaning up project and assembly references that have no actual usages in your source code. You can apply this command on a project, solution folder, or the entire solution. Before deletion is complete, you will be able to see all references that are going to be removed and if necessary, preserve the ones that you want to keep.

When you remove project and assembly references, JetBrains Rider also deletes all redundant namespace import directives (using in C#, Imports in Visual Basic) that reference namespaces from the removed assemblies.