Questions tagged [deleting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11 votes
4 answers
5k views

Linux / BSD "quickly" wipe a USB drive?

I'm clearing a drive with dd. It's a USB device and 120GB and it's taking a very long time: dd if=/dev/zero of=/dev/da0 bs=1M status=progress I have tried messing with the block size (smaller and ...
Rino Bino's user avatar
  • 593
1 vote
2 answers
86 views

Delete folders asynchronously

I have a large file system in which I have to delete certain directories from time to time. Currently I have a script which amongst other things, deletes a folder and subsequently generates an email ...
loris's user avatar
  • 242
2 votes
2 answers
509 views

Force deleted files on NFS server to be recycled instead

I have a RHEL 7.9 server I'm using as a file server. It exposes an XFS partition over NFS for clients to mount and use. I am willing to use a different filesystem than XFS if need be, but I cannot ...
tjlds's user avatar
  • 23
0 votes
0 answers
265 views

BizTalk 2020 SFTP Receive adapter not deleting files after downloading from MoveIT SFTP servers

The issue is the BizTalk 2020 SFTP receive adapter does not delete the SFTP file after downloading it from a MoveIT SFTP server. This issue has already been reported but I cannot find any resolution ...
Andrew Newman's user avatar
0 votes
0 answers
46 views

I cannot delete a "Azure Domain-Services"-Ressource

we have the problem that we are not able to delete our "Azure AD Domain Services"-Domain. Here you can see the current state: Error-Screenshot when we try to delete it, we get following ...
Leon Beyer's user avatar
0 votes
0 answers
1k views

NTPD deleting interface eno3

Our server is loosing connection one time every day and we must reboot it manualy to get the netword coming back! The only line we can see and is certainly responsible of that is this one : ntpd[1009]...
Recif's user avatar
  • 153
0 votes
0 answers
252 views

FTP File Delete failing after Rename

I have a 3rd party connector (ION) that is sending files via FTP and due to failures, it seems they are running an RNFR command, followed by a RNTO command, and finally a DELE command on the original ...
AlliDeacon's user avatar
0 votes
2 answers
1k views

Bulk delete ec2 snapshots from Jenkins

Use case: Export list of snapshots in txt file (old_snapshots.txt) to S3 bucket. From Jenkins, use aws cp command copy file to Jenkins /tmp/directory --dry-run did not show any error However, when ...
Sunny J's user avatar
  • 617
1 vote
2 answers
2k views

How to have rsync delete destination files 6 months after they have been deleted at source?

Working on Debian 10. Seeing that rdiff-backup has stopped development for quite some time, I'd like to move on my backup-needs to rsync. However, there is one feature of rdiff-backup that I am not ...
Markus-Hermann's user avatar
2 votes
1 answer
78 views

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 ...
lotsofjam's user avatar
0 votes
2 answers
1k views

Delete a log while is written using SED - /var/log/messages

I had a filesystem that was over 60%. I found that the file /var/log/messages had more than 4 million lines so I decided to delete 2 million lines in order to clear some space. I executed the command ...
Galo Ramirez's user avatar
-1 votes
1 answer
443 views

speeding up deleting a large directory by running rm -rf on multiple terminals

I have this very large directory that I'm deleting with : rm - rf . It is taking very long, so I opened up another terminal and try deleting the same directory with rm -rf parallely. Is this ...
Abhimanyu's user avatar
1 vote
2 answers
29 views

query the deletion progress

I am deleting approximately 4 million files from a partition and despite the size of all folders is around 350GB is taking a huge amount of time, over 4 hours now. Is there a way or a command to ...
user402939's user avatar
3 votes
2 answers
379 views

Recommended tools for mass file delete [closed]

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 ...
K-Lye's user avatar
  • 41
0 votes
1 answer
117 views

NTP host-name deleted from running config on Cisco 2811

When I configure "ntp server p1.ntp.net.nz" The router tries to resolve the name when it boots up but fails because the ADSL has not come up yet, So the router seams to deleted the host-name from ...
CNCdavid's user avatar
5 votes
1 answer
5k views

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 ...
Andrew Volkov's user avatar
0 votes
1 answer
1k views

Amazon EC2 Windows Server 2012 cannot delete file even as Administrator

I cannot get Blender3D to run on my AWS EC2 instance. I get a message telling me that my system does not use 3D hardware acceleration. I have all my drivers installed (NVidaGRID, etc) and have ...
pookie's user avatar
  • 151
1 vote
1 answer
951 views

zombie lxc swap file: text file busy but no pid

I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). On that server I created a new Linux container: $ sudo lxc-create -n mycontainer After a while I decided to get rid of this container: ...
igal's user avatar
  • 144
5 votes
3 answers
26k views

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 ...
Lucas B's user avatar
  • 61
2 votes
1 answer
2k views

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 ...
Anna Nuema's user avatar
3 votes
3 answers
18k views

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 - http://www....
Neville's user avatar
  • 133
2 votes
1 answer
2k views

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 ...
Koresh's user avatar
  • 131
0 votes
1 answer
225 views

Files deleted but process open [duplicate]

My /dev/md1 is full # du -x -m --max-depth=1 | sort -n shows 0 ./dev 0 ./proc 0 ./sys 1 ./home 1 ./lost+found 1 ./media 1 ./mnt 1 ./selinux 1 ./srv 1 ./tmp 4 ./lib32 6 ./bin ...
bklups's user avatar
  • 101
1 vote
0 answers
303 views

Rsync does not delete destination files [rsync protocol / module]

An automatic backup script executes the following rsync command to sync a local directory tree with a remote one: env RSYNC_PASSWORD=$rsync_password rsync -aqrxz --delete --timeout=30 \ "${...
davide's user avatar
  • 162
0 votes
0 answers
346 views

osx server folders being deleted/removed

I am running a Mac mini as a server for our office. Files and folders start disappearing from our work folder at random intervals but specifically from one folder. The work is all stored on an ...
Nick's user avatar
  • 1
0 votes
3 answers
1k views

How to know which SSH user deleted my folder?

We have a linux server in our lab which is shared among a number of developers. Server credentials (NOT root) are known to all and they log in using SSH. Now, when I logged in today I just realized ...
Amit's user avatar
  • 221
41 votes
5 answers
40k views

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/...
tommarshall's user avatar
6 votes
1 answer
63k views

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 ...
John's user avatar
  • 61
1 vote
1 answer
2k views

Can I safely delete old user folders in Windows Server 2003?

I have a Windows Server 2003 machine. When I delete a user, their folder remains in the Documents and Settings. Is it safe for me to delete those folders if I don't need any of the data in there? Or ...
nathangiesbrecht's user avatar
1 vote
0 answers
556 views

deleting files only frees space partially (ext3 / ext4)

I just did something similar to this: $ du -sh /bigdata/stuff 1022G /bigdata/stuff $ df -h /bigdata Fileystem Size Used Avail Used% mounted on /dev/sda5 1,8T 1,7T 140G 93% /bigdata $ rm -...
Markus N.'s user avatar
  • 111
46 votes
2 answers
64k views

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 ...
Lando's user avatar
  • 615
2 votes
3 answers
16k views

Can't write to OpenLDAP: "shadow context; no update referral"

I just set up an OpenLDAP server (v2.4.23) and loaded some data. I can browse and edit via Apache Directory Studio, but not deletions all fail. For example, I tried to delete a list of DNs from a ...
Brad Mace's user avatar
  • 1,024
-1 votes
1 answer
83 views

Disabling/hiding rather than deleting [closed]

From what I understand, it's generally best practice to design a system with user access to delete "records" to only hide/disable that record and not actually delete it. This typically ends up being (...
JBurace's user avatar
  • 205
0 votes
1 answer
62 views

Deleting a user in unix

Does deleting/removing a user automatically remove the user from all groups the user was a member in?
user avatar
4 votes
2 answers
3k views

How to delete files quicker than rm -rf? [duplicate]

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 ...
Byakugan's user avatar
  • 141
2 votes
4 answers
748 views

How to quickly remove hundreds of thousands of files? [duplicate]

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 ...
Nick's user avatar
  • 143
1 vote
1 answer
4k views

Unable to delete a folder? Read Only Attribute locked?

We have a Windows 2008 R2 with Oracle11g and I need to uninstall the server and to reinstall again. I was following this Oracle Uninstall guide here: http://www.oracle-base.com/articles/misc/...
Spirit's user avatar
  • 1,164
2 votes
7 answers
3k views

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 ...
Carlos Garcia's user avatar
11 votes
4 answers
27k views

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? ...
Mike's user avatar
  • 374
0 votes
1 answer
3k views

Deleting a file created with a SELECT ... INTO OUTFILE

I am trying to delete a file created with a SELECT ... INTO OUTFILE statement into the /tmp directory The file belongs to the mysql user (who doesn't have a login shell). I have administrative ...
Silvio Donnini's user avatar
2 votes
2 answers
44k views

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 ...
psalomonsen's user avatar
1 vote
5 answers
4k views

Quickest way to scheduled file deletion on Windows

I have a windows server machine that takes daily backup daily and each daily backup takes 1.5gb thus every night, I want to remove backup files that are older than 1 week. This is how my back up ...
Hellnar's user avatar
  • 143