GoLang API: Destroy Version of Secret

Hi everyone,

I am struggling to destroy a specific version of a secret for a kv-v2 secret engine.

The API provides a Delete() method, but not a method for destroying a secret or a secret version: https://godoc.org/github.com/hashicorp/vault/api#Logical.Delete

Has somebody a code snippet on how I can realise such mechanism in Go.

Thank you very much.

I would also be interested in how to solve that issue in golang.

I haven’t done it before, but I believe from the API since it’s a POST it should just be a matter of

client.Write("/myKvv2Mount/destroy/path/to/my/secret", map[string]interface{}{
“versions”: int{vX,vY},
})