You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Deleting objects on network resources without confirmation

My work involves a lot of work with files on my network share (samba resources on a FreeBSD server), lying on a zfs file system.

If I accidentally delete a file, I can instantly restore it from the zfs snapshots. And any incarnation of it.

There are a lot of files that sometimes have to be deleted.

It's mind-blowing to have to hit the confirm button every time. Hundreds of files that I both edit and add and delete.

How can I get rid of this utopian function from the 90s - confirming the deletion of files?


Posted on Jul 11, 2022 11:06 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 14, 2022 3:37 AM

As already said, an Automator workflow is a great idea, and also you can add a keyboard shortcut to it. Create a new Quick Action, give it a descriptive name and then add a keyboard shortcut in System Preferences->Keyboard->Shortcuts->Services

(for example, Command-Control-Option-Delete)


As John said, adding some basic error-checking would be a good measure,

If you really want a "delete immediately, no questions asked" solution, then, at your own risk, you could try the one below.


WARNING: use at your own risk. If you control-click on an item in the Finder and choose this Service (or press the respective shortcut, if assigned), it will be deleted immediately (not going to the trash), just so long as you have permissions for it.





EDIT: image was replaced, as the original contained a typo.

Similar questions

6 replies
Question marked as Top-ranking reply

Jul 14, 2022 3:37 AM in response to EsTaF

As already said, an Automator workflow is a great idea, and also you can add a keyboard shortcut to it. Create a new Quick Action, give it a descriptive name and then add a keyboard shortcut in System Preferences->Keyboard->Shortcuts->Services

(for example, Command-Control-Option-Delete)


As John said, adding some basic error-checking would be a good measure,

If you really want a "delete immediately, no questions asked" solution, then, at your own risk, you could try the one below.


WARNING: use at your own risk. If you control-click on an item in the Finder and choose this Service (or press the respective shortcut, if assigned), it will be deleted immediately (not going to the trash), just so long as you have permissions for it.





EDIT: image was replaced, as the original contained a typo.

Jul 12, 2022 5:22 PM in response to EsTaF

Hello EsTaF,


Thank you for using Apple Support Communities.


There are a few different ways to delete files from your Mac, but they all require a confirmation to complete the process. You can take a look at this article for more info on deleting files: Delete files and folders on Mac - Apple Support


If you find yourself constantly deleting a lot of files, you may want to look into creating an Automator workflow to automate the task of deleting the files. Take a look at this article for some suggestions: Create a workflow in Automator on Mac - Apple Support


Best regards.

Jul 13, 2022 9:37 AM in response to EsTaF

I understand you have a frequent need to delete multiple files on a network share that uses ZFS, and the usually helpful macOS file deletion confirmation dialog is presenting an untenable hindrance to that need.


My first inclination would be to post a brand new question in Mac OS X Technologies - Apple Community, because that is the forum likely to get the most competent and timely response. There are at least two frequent participants of that forum who may be interested in the challenge.


An Automator Workflow is a good idea, but if I were faced with that task I'd write a shell script and invoke it with an AppleScript that incorporates some basic error-checking.

Jul 12, 2022 10:58 PM in response to jeffd55

Thanks, jeffd55


Hmm, then it is easier to look for a solution not in the help of apple, otherwise I will experiment and very long to get some success, but search through Google.

However, I asked the question here, not google it.


There are a lot of topics on the subject of deleting files via automator.

"How to safely delete a file (zeroing out the entire area on the partition where the file was"

"How to delete all files in a certain folder"

"How to delete files with a certain extension"

"How to delete files of a certain date"

You could add about five more options here.

But I could not find any options how to simply highlight a file, or files, click on them with a simple keyboard shortcut and thereby delete them without confirmation.


That's why I asked the question here, because I couldn't find a simple solution.

Deleting objects on network resources without confirmation

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.