Questions tagged [delete-file]

Tag for questions regarding file deletion. O.S. independent.

2105 questions
29
votes
5 answers

Why is it important to delete files in-order to remove them faster?

Some time ago I learned that rsync deletes files much faster that many other tools. A few days ago I came across this wonderful answer on Serverfault which explains why rsync is so good at deleting files. Quotation from that answer: I revisited…
ovgolovin
  • 13,063
  • 6
  • 47
  • 78
27
votes
9 answers

How do you completely delete projects in Xcode?

So if I go into my selected save folder for my projects and delete my project it no longer shows up in Xcode. However I can still find some other files if I look under my user name/Library/Developer/Xcode/DerivedData. There are other files Xcode…
Josh G
  • 269
  • 1
  • 3
  • 3
27
votes
6 answers

Bizarre directory delete behaviour on SSD drive

Directory c:\test has 50 or so files in it, no subdirectories. If IO.Directory.Exists("C:\test") Then IO.Directory.Delete("C:\test", True) End If IO.Directory.CreateDirectory("C:\test") Drive C is Intel's X25-M80 SSD drive, OS…
Vnuk
  • 2,673
  • 1
  • 32
  • 49
27
votes
4 answers

How to get all the files exceeding certain size and deleting them

I am looking for a linux command to get all the files exceeding a certain size from the current directory and its sub-directories. Whats the easiest way to delete all these files?
Ran
  • 3,455
  • 12
  • 47
  • 60
26
votes
8 answers

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting a file, the file may remain locked for 1 minute or more and only after that be deleted. On another occasions I encountered files…
Dani
  • 461
  • 2
  • 5
  • 7
26
votes
2 answers

What does it mean if some files in TortoiseSVN are marked "deleted" and others "deleted (+)" with a plus sign?

I'm about to do a commit in TortoiseSVN involving rearranging a lot of files and directories. On the "commit" window, there are several files whose text status is "deleted" or "added" but others whose text status is "deleted (+)" or "added (+)".…
Tyler
  • 21,762
  • 11
  • 61
  • 90
25
votes
8 answers

Windows batch file to delete .svn files and folders

In order to delete all ".svn" files/folders/subfolders in "myfolder" I use this simple line in a batch file: FOR /R myfolder %%X IN (.svn) DO (RD /S /Q "%%X") This works, but if there are no ".svn" files/folders the batch file shows a warning…
Marco Demaio
  • 33,578
  • 33
  • 128
  • 159
24
votes
7 answers

Waiting for system to delete file

I had a problem with refreshing file list after deleting a file. When I gave command to delete file, the exception was thrown because the refresh method tried to access a file that was supposed to be deleted. After some thought and debuging I came…
Miro
  • 1,778
  • 6
  • 24
  • 42
24
votes
6 answers

Git ignore deleted files

I have a website project that has more than 50,000 unimportant files (to development) in some directories. /website.com/files/1.txt /website.com/files/2.txt /website.com/files/3.txt /website.com/files/etc.txt The stuff in /files is already in the…
Petah
  • 45,477
  • 28
  • 157
  • 213
24
votes
11 answers

How can I make my .NET application erase itself?

How can I make my C# app erase itself (self-destruct)? Here's two ways that I think might work: Supply another program that deletes the main program. How is this deleter program deleted then, though? Create a process to CMD that waits a few seconds…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
24
votes
7 answers

How to delete a File in Google Drive?

How do I write a Google Apps Script that deletes files? This finds files: var ExistingFiles = DocsList.find(fileName); But DocsList.deleteFile does not exist to delete a file. Is there a way to move those files to another Folder or to Trash? The…
user1962847
  • 241
  • 1
  • 2
  • 3
23
votes
6 answers

Add files to SVN then delete before commit

I guess I was careless. I added a bunch of files to svn with svn add, then I saw a few files added that I didn't want so I deleted them with rm. Now I can't commit anymore because the commit is missing files. I tried svn cleanup but it didn't…
Eric
  • 19,525
  • 19
  • 84
  • 147
23
votes
2 answers

Batch file to delete files with .bak extension

In batch, I want to delete all files *.bak in various folders on disk c:\. Can anyone help me? ex.: all c: del *.bak /s /a Thank you.
Sweeper
  • 465
  • 1
  • 4
  • 15
22
votes
4 answers

How to correct delete catalina.out?

I couldn't restart Tomcat webserver. But catalina.out get very big. I have tried delete on test server and created new empty. But Tomcat doesn't write anymore in new catalina.out. How correct delete/create empty new one ?
user710818
  • 23,228
  • 58
  • 149
  • 207
21
votes
2 answers

How to locate and recover a deleted file

At some stage in the past I had a "foo.txt" which was under Mercurial source control. However it has now been deleted. How can I recover the file when I don't know the last Mercurial revision in which the file was deleted?
Stormcloud
  • 2,065
  • 2
  • 21
  • 41