Remove all items in mdfind How would I remove all of the items returned by mdfind? For example, I want to remove all files relating to "MacLaunchpad", so I did

mdfind "MacLaunchpad"


Which returned

/private/var/db/receipts/o.t.maclaunchpad.postflight.pkg.plist
/private/var/db/receipts/o.t.maclaunchpad.maclaunchpad.pkg.plist
/private/var/db/receipts/o.t.maclaunchpad.postflight.pkg.bom
/private/var/db/receipts/o.t.maclaunchpad.launchpad.pkg.plist
/private/var/db/receipts/o.t.maclaunchpad.launchpad.pkg.bom
/private/var/db/receipts/o.t.maclaunchpad.maclaunchpad.pkg.bom


I wish to remove all of these files; how would I go about doing that?
There are at least two ways for this


rm $(mdfind "MacLaunchpad")
mdfind "MacLaunchpad" | xargs rm




If you expect the resulting file/path names to contain spaces and other surprises use

mdfind -0 "MacLaunchpad" | xargs -0 rm --