Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It does not look like you need a database. After you have performed the search you already know the file names to delete and this is all you need.</p> <p>There is no concerns about storing long paths using either List&lt;> or a text file. The are stored exactly the same as short paths.</p> <p>Why do you need to picture the deletion process? Is there something in particular you do not understand about it? Deletion process is basically an API call that tells the file system that a file it stores is no longer exists. The file system makes a note of this and frees space / does not surface this file on any subsequent request. - this is how I picture it.</p> <p>Yes, you can delete them based on either List&lt;> or a text file.</p> <p>The code that you gave will delete all the files from c:\MyDir\ If this is all you want, then this is enough (given the application has correct permissions and files are not locked by another process).</p> <p>Here are some helpful references to answer you further questions:</p> <p>How to delete a file: <a href="http://msdn.microsoft.com/en-us/library/system.io.file.delete.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.io.file.delete.aspx</a></p> <p>How to write to a text file <a href="http://msdn.microsoft.com/en-us/library/vstudio/8bh11f1k.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/vstudio/8bh11f1k.aspx</a></p> <p>How to iterate through an array <a href="http://msdn.microsoft.com/en-us/library/5ts69ce3%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/5ts69ce3%28v=vs.90%29.aspx</a></p> <p>How to iterate through a collection <a href="http://msdn.microsoft.com/en-us/library/wzc4yayd%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/wzc4yayd%28v=vs.90%29.aspx</a></p> <p>You can delete the files from your C# code, you don't need cmd.exe for this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload