FreeKB - Docker delete secret using curl
Docker - delete secret using curl

A secret is a file that contains sensitive data, such as a password.

You will need an auth_token before you can delete a secret using curl. Let's say you want to delete the secret named "my_secret" that has an ID of pp6d206pqk28cj12kjv36l2v7.

The following curl command can be used to delete the secret using "my_secret".

curl -k -X DELETE -H "Authorization: Bearer $auth_token" -H 'Accept: application/json' https://hostname:port/secrets/my_secret

 

The following curl command can be used to delete the secret using the secret ID.

curl -k -X DELETE -H "Authorization: Bearer $auth_token" -H 'Accept: application/json' https://hostname:port/secrets/pp6d206pqk28cj12kjv36l2v7

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter b25d5 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |