Generate new key pair with RSA 4096

gpg --full-gen-key

List private keys

gpg --list-secret-keys --keyid-format LONG

Liste public keys

gpg --list-keys --keyid-format LONG

Delete private key

gpg --delete-secret-keys

Delete public key

gpg --delete-keys

Export public key

gpg --armor --export <key-id> > pub.key