You can delete a secret that is no longer in use in the Container Service console.
You cannot delete a secret that is being referenced by a service. Remove the secret from the service before deleting the secret.
Log on to the Container Service console.
Click Clusters in the left-side navigation pane.
Click Manage at the right of the cluster.
Click Secrets in the left-side navigation pane.
Click Delete at the right of the secret you want to delete.
In the confirmation dialog box, click Confirm.
If the secret is being referenced by one or more services, an error is reported when you try to delete it. You must first remove the secret from the service by changing the application configurations and then delete the secret. For how to remove a secret from the service, see Update a service secret.