title: How do I make a batch file delete it's own directory?
body: <p>Okay, I apologize that I am very new at this, but I am trying to make my batch file delete it's own directory after it has been launched. This is how my folders are arranged:</p>
  
  <ul>
  <li>Folder1
  
  <ul>
  <li>delete.bat</li>
  </ul></li>
  </ul>
  
  <p>My goal is to make "delete.bat" delete "Folder1" after "delete.bat" has been launched. So here's my code:</p>
  
  <pre><code>rd /s /q %~dp0..\Folder1
  </code></pre>
  
  <p>This seems like it would work but it only deletes the contents of "Folder1" rather than the whole directory itself. What am I doing wrong?</p>