Obviously, you could just remove every file individually — but that can take a long time, and might also leave you with hidden trash files. The best way to clear an SD card is to format it.