title: Delete "Deleted" files from local repository
body: <p>How do I delete files which have been deleted from the Repo but have not been deleted locally yet?</p>
  
  <p>Essentially, I'm writing a <strong>build script</strong> in powershell that needs to get the most up-to-date changes from the repo and checkout, but there might be files which were deleted from the repo which haven't yet been deleted from my local checkout. I mean, one solution is to just delete everything and do a clean checkout, but that's rather expensive and would take a long time. I could also do a svn status and look for anything with a "D" and delete them locally, but that's rather tedious. I'd like to also just overwrite any conflicts and --force the checkout for files which need to be merged.</p>
  
  <p>Is there some simple command like revert or a checkout switch that I'm missing? </p>
  
  <hr>
  
  <p>*<strong>*Edit: There are actually two different cases that I need to handle:</strong></p>
  
  <p><strong>Part A)</strong> In one section, I need to leave anything modified in the working copy alone and just checkout the changes that aren't conflicts or merged. I need this to never abort, meaning that I just want to throw away anything that has a problem and keep the working/local copy.</p>
  
  <p>I was thinking of using: <code>svn update --accept mine-full --force</code> (<em>Note</em>: This is on the root directory and not individual files)</p>
  
  <p><strong>Part B)</strong> In the other section, I want to overwrite any changes and delete files which were deleted in the repo. </p>
  
  <p>I was thinking of using: <code>svn update --accept theirs-full --force</code> (<em>Note</em>: This is on the root directory and not individual files) </p>
  
  <p>Would this work? Or is --force (or --accept) not what I want to be using?</p>
  
  <hr>
  
  <p>My main concern with using update is that it will abort the entire process if there's a problem, won't it? What does --force do with svn update? It also doesn't delete unversioned items.</p>
  
  <p>Revert isn't exactly what I need either, is it? It doesn't delete any of my unversioned items.</p>
  
  <p>Also, doesn't checkout just do the same thing as update if there are already local files? It would be much simpler to just use checkout in the case where nothing exists yet. The problem is that I cannot specify the --accept parameter with svn checkout. I suppose I could test if the folder exists and then do a checkout or an update accordingly.</p>