embark
embark copied to clipboard
Delete all folders "target" (include empty folders) with all files and subfolders. Is this a correct way?
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:
Then open buffer "Embark Actions* (C-S-a
)
And select command: embark-export
Here result
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
And delete all items by press D
And if I again try to find all folder target the result will be empty.
Nice.
The question are:
- Is this a fastest and correct way to delete all files and subfolders in some folder?
- What about many candidats? If count of candidats = 15 000 the command embark-export is execute very long time. About one minute.