Suppress “Are you sure you want to delete…” dialogue when deleting items on SMB shares

deletingdialogfindersmbtrash

When connected to an SMB share in Finder and deleting files or folders, this dialogue comes up:

enter image description here

I believe that the reasoning behind this dialogue is because deleted files don't go to a Trash or .Trashes folder, and so I think it's a good dialogue to have for most users. But when managing a large number of files in SMB shares frequently it can become very tedious and time-consuming to keep having to confirm each deletion. Power users really only need to see this once (the first time they delete something).

I am aware of the cmd+d keyboard shortcut for performing the delete function on this dialogue, which shaves off some time, but ultimately I'd like a way to suppress this dialogue completely.

How could I suppress these dialogues and make it so that when I delete something the "Delete" action is performed?

Best Answer

You can use the Terminal command rm to bypass the Finder altogether and suppress the GUI notification.

Check out the available options by typing man rm.