How to revoke certificates and uninstall discourse?

There’s negligible risk in not revoking the certificates. Without the private key, they’re useless.

If you want to, you can follow:

Removing the containers, volumes, and then the Discourse install directory will be sufficient to complete uninstall.