Deleting a secret

The kubectl delete command can be used to delete a secret.

About this task

To delete a secret, issue the command specifying the secret.
 kubectl delete secret secretname
The following example shows the command to delete extra-community-configs secret.
 kubectl delete secret extra-community-configs