Delete the key, certificate, CSR, and trust file under dir.
Missing files are ignored. The directory is removed when it is empty afterwards.