9 ms·
Not safe at all. It relies on Spotlight (mdfind), which could return all kinds of things you might not want deleted. It pays no attention to BoM receipts. Why?!
by Maursault 5y ago
Not safe at all. It relies on Spotlight (mdfind), which could return all kinds of things you might not want deleted. It pays no attention to BoM receipts. Why?! Then it just summarily deletes stuff (rm). See my much safer script above in comments.