embark icon indicating copy to clipboard operation
embark copied to clipboard

Delete all folders "target" (include empty folders) with all files and subfolders. Is this a correct way?

Open alexei-28 opened this issue 3 years ago • 0 comments

Linux Mint 20.2

Emacs 27.1

I my folder myProject I has many folder targets (include empty). I want to delete all this folders target.

Steps.

On dired mode go to folder myProject.

M-x consult-find
/target

Here result: 1

Then open buffer "Embark Actions* (C-S-a)

2

And select command: embark-export

Here result 3

As you can see in the separate buffer collect all folders target (with empty folder) include all it's files and subfolders.

So now I just select all items in Dired mode by press t 4

And delete all items by press D

And if I again try to find all folder target the result will be empty. 5

Nice.

The question are:

  1. Is this a fastest and correct way to delete all files and subfolders in some folder?
  2. What about many candidats? If count of candidats = 15 000 the command embark-export is execute very long time. About one minute.

alexei-28 avatar Oct 01 '21 08:10 alexei-28