# How can i purge server cache in one go not by file name?

**URL:** https://community.wowza.com/t/how-can-i-purge-server-cache-in-one-go-not-by-file-name/48701
**Category:** Wowza Streaming Engine
**Created:** [May 11, 2017, 7:24am UTC](https://community.wowza.com/t/how-can-i-purge-server-cache-in-one-go-not-by-file-name/48701 "2017-05-11T07:24:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vikas\_chauhan](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vikas\_chauhan](https://community.wowza.com/u/vikas_chauhan)
#### Post date: [May 11, 2017, 7:24am UTC](https://community.wowza.com/t/how-can-i-purge-server-cache-in-one-go-not-by-file-name/48701/1 "2017-05-11T07:24:34Z")

</div>

Missing title. Missing body.

---

<div class="post-metadata">

### Author: ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)
#### Post date: [May 23, 2017, 7:34pm UTC](https://community.wowza.com/t/how-can-i-purge-server-cache-in-one-go-not-by-file-name/48701/2 "2017-05-23T19:34:01Z")

</div>

The fastest way would be to restart the Wowza server and not reload the cached items at server startup time. I assume that the server restart is something that you would like to avoid.

As you probably are aware, you can purge a specific Item from MediaCache using the Wowza REST API. You can get a list of all the cached assets and you can remove a specific asset from the cache. I will have to test and check with our engineers if it is possible to specify multiple comma separated assets when making the request to the REST API (something like …/flushItemFromCache?filename=http/asset1.mp4,http/asset2.mp4,http/asset3.mp4,…)

I will let you know as soon as I have additional info.

Here is the article showing how you can get a list of all Media Cache cached items and how to remove an item from the local cache, using the Wowza REST API:

[https://www.wowza.com/docs/media-cache-query-examples#getassetlist](https://www.wowza.com/docs/media-cache-query-examples#getassetlist)

Zoran

---

<div class="post-metadata">

### Author: ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)
#### Post date: [May 23, 2017, 7:56pm UTC](https://community.wowza.com/t/how-can-i-purge-server-cache-in-one-go-not-by-file-name/48701/3 "2017-05-23T19:56:20Z")

</div>

I have just checked with our engineers and it looks like it is not possible to clear all the cached items in one go using a single APi request. There is a product backlog request already created to have this option available, but at this time there is no timeframe set on when this will become available.
