The procedure you describe is called "resetting RStudio Desktop's state". It can certainly help in a variety of circumstances, though there are also plenty of problems that need other solutions. It's probably good to note that the specific instructions above apply to Windows. For other operating systems, the steps are a bit different.
I think it's also good to know that it's not necessary to delete anything — renaming works, as well, and is safer. Full instructions for resetting RStudio Desktop's state can be found here: