Web Sessions 4.3.10 | Terracotta REST Developer Guide | Specifications for HTTP Operations | Examples of URIs | DELETE
 
DELETE
Clears a cache, or clears cache statistics.
The following DELETE examples are organized by task and URI.
Clear a Cache
/agents;id=client01/cacheManagers;names=foo/caches;names=bar/elements
Removes the elements from the cache "bar" of CacheManager "foo" on the Ehcache node "client01".
Clear Cache Statistics
/agents;id=client01/cacheManagers;names=foo/caches;names=bar/configs
Clears all cache statistics for cache "foo" and resets counters to zero.
Possible HTTP Status Codes for DELETE
400 – URI does not specify a single resource.
404 – Resource specified in the URI cannot be found.