This message was deleted.
# azure
s
This message was deleted.
b
How did the secret get added to the vault?
r
with new next.keyvault.latest.Secret
b
Ah and you want it purged permanently? Rather than "soft deleted"?
r
exactly
b
I don't believe you can (although I'll check up on this). You can set the number of days to keys around for before they are purged (https://www.pulumi.com/docs/reference/pkg/azure/keyvault/keyvault/#softdeleteretentiondays_nodejs) so you could set that to be 1 day.
r
thats too long for our case. and unluckily we dont even have access to keyvault itself, in our program we just have rights to add and delete secrets
b
Another option would be just to delete it using the azure SDK. So as part of the program just delete it
r
yeah, but some kind of hooking on component lifecycle will be needed then? Something like postDelete => purge with api call
or some kind of logic which purge if exists and do nothing if not can work as well i guess
t
@rough-tomato-98795 If you put the purge in the stack, then it will purge whether or not the secret has been created or deleted.
Can you explain your scenario?