Questions tagged [deleting]

41 questions
41
votes
2 answers

How to delete .fuse_hidden* files?

I have small Linux server (Debian Squeeze) which runs a Samba server which is configured to share some folders with some windows machines. While trying to delete one of the directories from windows I received the "Cannot delete folder" error. I…
Lando
  • 565
  • 2
  • 5
  • 9
32
votes
5 answers

rsync 'cannot delete non-empty directory' errors, even with --force option

When running this command: $ sudo rsync -r --delete --force --checksum --exclude=uploads /data/prep/* /data/app/ I'm getting the following output: cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor/yui cannot delete…
tommarshall
  • 423
  • 1
  • 4
  • 7
11
votes
4 answers

Delete files older than X days on remote server with SCP/SFTP

Do anyone know some good way to delete files on remote server that are older than X days using just SCP/SFTP? Sure I can write some script on perl etc but I feel it's overkill. Any UNIX way? Oneliner? Separate utility? Thanks P.S. The task is to…
Mike
  • 374
  • 1
  • 3
  • 13
5
votes
1 answer

How can I permanently remove/delete a line in route with CentOS 6

root@new [~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 178.18.23.200 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 178.18.23.0 0.0.0.0 255.255.255.0 …
John
  • 51
  • 1
  • 1
  • 2
4
votes
3 answers

Server 2012 R2 - how to delete a file that is "open in System"?

I am using Server 2012 R2 Datacenter Core. It is one of our Hyper-V hosts. I manage it from my workstation using Hyper-V manager, and manipulate files through the admin share. I created a VM, then copied a VHDX into the Hard Disks folder. I then…
Lucas B
  • 51
  • 1
  • 1
  • 4
4
votes
2 answers

How to delete files quicker than rm -rf?

Possible Duplicate: Millions of files in php’s tmp error - how to delete? Is there any way how to delete folder/files quicker than with command rm -rf? It seems my disc is filled with bilions of files (sessions of php5) which were not deleted in…
Byakugan
  • 141
  • 1
  • 3
  • 11
3
votes
2 answers

Recommended tools for mass file delete

We have a challenge in deleting circa X million files that meet a certain criteria - specifically must be over 90 days old and exclude certain file formats. To date, we've been using a multi-threaded powershell script which is good but still not as…
K-Lye
  • 41
  • 4
3
votes
1 answer

How can I permanently remove a line in route with Debian-based distributions?

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 202 0 0 eth0 default 192.168.43.1 0.0.0.0 UG 303 …
Andrew Volkov
  • 31
  • 1
  • 2
3
votes
3 answers

How to audit file and folder deletes on Windows Server 2008 r2

I need to enable auditing of delete actions on a specific network shared folder (and all its children) on a Windows Server 2008 r2 machine. The closest I could find was this article -…
Neville
  • 133
  • 1
  • 1
  • 5
2
votes
1 answer

securely erasing files on a network share

If I delete a file on a network share from a windows client with something like eraser, will it overwrite the actual blocks of data of said file over and over or will it write out all over the place as it is told to write zeros? How accurate would…
lotsofjam
  • 31
  • 1
2
votes
1 answer

Use Windows PowerShell to find and delete files from specific owner

Because of a ransomware attack (no big deal, all recovered from backup) I want to clean up the directories and sub directories on the network share where the attack happened to create a lot of scrambeled files. They are all owned by the user who…
Anna Nuema
  • 23
  • 4
2
votes
1 answer

Msdeploy, can sync but not delete

I'm trying to setup automatic deployment using msbuild. I succeeded having a msdeploy sync call to successfully publish a zip package created with msbuild. However when I try to perform a msdeploy delete call prior to the sync operation it fails…
Koresh
  • 131
  • 6
2
votes
4 answers

How to quickly remove hundreds of thousands of files?

Possible Duplicate: Doing an rm -rf on a massive directory tree takes hours I'm running a simulation program on a computing cluster (Scientific Linux) that generates hundreds of thousands of atomic coordinate files. But I'm having a problem…
Nick
  • 143
  • 3
2
votes
7 answers

Massive amount of subfolders and long subfolders. How can I delete all of them?

We have a little problem here. We have a share with the backup of all the server's offices, Its a really big share with more than 8.000.000 files. Our users usually give long names to the folders they create, and then make subfolders (long too) and…
Carlos Garcia
  • 318
  • 3
  • 12
2
votes
2 answers

Can not access DfsrPrivate

I've set up DFS-R between three servers, and so far, it is replicating everything as its supposed to. The problem is, I can not access the DfsrPrivate folder. Where is it located? So far I see the link/shortcut from within my replicated folder. But…
psalomonsen
  • 147
  • 1
  • 1
  • 8
1
2 3