Remove only files in directory on linux NOT directories [closed]
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.