How to "Empty" GWC Layer Cache (REST) with CQL_FILTER?

Hi All,

I’m trying to work out how I can implement an equivalent to the “Empty” (cache) as found on each TileLayer… which resides here…

My issue is that once a CQL_FILTER has been configured on the layer, I can only get the cache to truncate (via REST/XML) if I provide a matching CQL_FILTER (parameter). Therefore, to empty the entire cache for a layer which might have encountered ~200 CQL_FILTER variants… I need to know what all the ~200 CQL_FILTERS are in order to be able to clear the cache.

This doesn’t seem right… and it also seems like there might be another way as the “Empty” web/action does exist… I just can’t see how to get that to work via the REST API.

Many thanks!!!
Andrew

p.s. I had a lot of issues submitting JSON and ended up having to use XML. I couldn’t see anything wrong with the JSON however these comments (thanks for whoever left them) got me to step away from JSON, onto XML and finally see 200 responses :slight_smile: geowebcache/geowebcache/rest/src/main/java/org/geowebcache/rest/service/SeedService.java at 6cf1e8cdc6082bbb0ed10a170ab0725d389fe7b1 · GeoWebCache/geowebcache · GitHub

Problem solved…

https://geowebcache.osgeo.org/docs/current/rest/masstruncate.html

Sorry about the noise folks!