Delete-PSUCache possible?

avatar
Product: PowerShell Universal
Version: 5.4.2


There is Set and Get for PSU Cache, what about Delete?
I have a PSU Cache that I made -Persist and now I want to delete it. What options do I have?

avatar

Recommended Answer

There is Set and Get for PSU Cache, what about Delete?

I have a PSU Cache that I made -Persist and now I want to delete it. What options do



dd64fb89444cd891df5977ae7efcc3ca4b51b2b4

dd64fb89444cd891df5977ae7efcc3ca4b51b2b4.png

All Comments (5)

avatar

There is Set and Get for PSU Cache, what about Delete?

I have a PSU Cache that I made -Persist and now I want to delete it. What options do



dd64fb89444cd891df5977ae7efcc3ca4b51b2b4

dd64fb89444cd891df5977ae7efcc3ca4b51b2b4.png

avatar

Thanks @michaelhanson1458. I forgot to check there, still new to this product.

I assume this is the only way and there isn’t a posh command like Remove-PSUCache -Key ‘xxxx’

avatar

@AnonymousUser
Wait what? There is a remove-psucache

I use it to clear my cache before setting new i.e

Remove-PSUCache -key "example"
Set-PSUCache -key "example" ...


avatar
Remove-PSUCache -key "example"


Thanks @AnonymousUser! I didn’t find that in the documentation, but I apparently never searched the cmdlets page (which i thought I had), be cause i see it now. Thanks everyone!

avatar

Yeah documentation is abit of a mess currently heh