find PATH -maxdepth 1 -type f -delete
BUT this won’t prompt you for confirmation or output what it just deleted. Therefore best to run it without the -delete action first and check that they’re the correct files.
find PATH -maxdepth 1 -type f -delete
BUT this won’t prompt you for confirmation or output what it just deleted. Therefore best to run it without the -delete action first and check that they’re the correct files.