title: PyCharm & VirtualEnvs - How To Remove Legacy
body: <p>How do I remove all traces of legacy projects from PyCharm?</p>
  
  <p>Background: I upgraded from PyCharm Community Edition to PyCharm Pro Edition today.
  Reason was so I could work on Django projects, and in particular, a fledgling legacy project called 'deals'. </p>
  
  <p>I deleted the legacy project folders.</p>
  
  <p>I then opened the Pro Edition and went through the steps of creating a Django project called 'deals' with  a python3.4 interpreter in a virtualenv.</p>
  
  <p>It didn't work, I got an error message saying something about a missing file, and in the PyCharm project explorer, all I could see was</p>
  
  <ul>
  <li><p>deals</p>
  
  <p>.ideas </p></li>
  </ul>
  
  <p>So I deleted it (ie. deleted the folders in both ~/.virtualenvs/deals and ~/Projects/deals).</p>
  
  <p>I tried again, although this time I got an interpreter with a number suffix, ie. python3.4 (1). 
  I continued, and got the same empty file structure.</p>
  
  <p>I deleted both folders again, went and cleaned out the intepreters in Settings > Project Interpreters .</p>
  
  <p>I then tried again, getting 'new' interpreters,until I finally had python3.4 (5) 
  Plus, along the way I also invalidated the caches and restarted.
  (ie. File > Invalidate Caches/Restart)</p>
  
  <p>Then to prove if it works at all, I tried a brand new name 'junk'.
  This time it worked fine, and I could see the Django folders in the PyCharm explorer. Great.</p>
  
  <p>But I really want to work on a project called 'deals'.
  So I deleted all the 'deal's folders again, and tried to create a deals Django project again.
  Same result.</p>
  
  <p>After googling, I went to the Settings > Project Structure > + Content Root, and pointed it to the folder at ~/.virtual/deals.</p>
  
  <p>Ok, so now I could see the files in the virtual env, but there's no Django files, and plus, the project folder was separate to the virtualenv folder, eg</p>
  
  <ul>
  <li><p>deals</p>
  
  <ul>
  <li>deals (~/project/deals)       <strong><em>&lt;- separate</em></strong></li>
  <li><p>deals (~/.virtualenvs/deals) <strong><em>&lt;- separate</em></strong></p>
  
  <ul>
  <li><p>deals</p>
  
  <p><strong>init</strong>.py
  settings.py
  urls.py
  wsgi.py</p></li>
  </ul>
  
  <p>manage.py</p></li>
  </ul></li>
  </ul>
  
  <p>Really stuck now.</p>
  
  <p>Any advice on how to get this working please?
  Eg. how do I</p>
  
  <p>(i) get it back to 'cleanskin' so that I can start up a Django project and get the proper folders in the project space.</p>
  
  <p>(ii) get it working with virtualenv, and ensure that the interpreter doesn't have a number suffix, such as python3.4(6)  </p>
  
  <p>Many thanks in advance,</p>
  
  <p>Chris</p>