How to clear Web acceleration cache?

So I have been trying to clear the web acceleration profile cache on applications and have ended up deleting the profile instead with this command:

DELETE '/mgmt/tm/ltm/profile/web-acceleration/~partion~app.app~optimized-caching_profile'

Can someone please help with the right commands for this?

Also tried to clear all with

DELETE '/mgmt/tm/ltm/profile/web-acceleration/all'

not sure it worked as the only response is null “”

Any references to better documentation or understanding would be greatly appreciated.

SOL13255 may help you out. It talks about clearing the cache from the CLI.

tmsh delete ltm profile ramcache "profile-name"

Replace

profile-name

with the web-acceleration profile name.

Note that clearing the cache does not reset the stats. To reset the stats, you need to:

tmsh reset-stats ltm profile web-acceleration "profile-name"

It is an unfortunate state of things that the command to clear cache is aimed at “ramcache” and it looks like the command you would use to actually delete a profile as per TMSH conventions, but that is how it is.