How to revoke certificates and uninstall discourse?

They’ll reissue them.

If you’re unsure, you can copy the Let’s Encrypt directory out of the container and archive it, either to reuse the key & certificate or issue a revoke.