CmdID / aws / aws lightsail
aws lightsail delete-key-pair
Deletes the specified key pair by removing the public key from Amazon Lightsail. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--expected-fingerprintThe RSA fingerprint of the Lightsail default key pair to delete.--key-pair-nameThe name of the key pair to delete.