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.
A modern SD card is mostly just plastic, as in the decades since the format was created ... Meanwhile those of you with long memories may recall this isn’t the first SD surgery we’ve brought ...