# removeAllCaches (/zh-CN/api-reference/rtc/harmonyos/api-imediaplayercachemanager-removeallcaches)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 详情 [#详情]
:::info[注]
该方法不会删除正在播放中的已缓存媒体文件。
:::
## 返回值 [#返回值]
- 0:方法调用成功。
- < 0:方法调用失败,详见 [MediaPlayerReason](/zh-CN/api-reference/rtc/harmonyos/enum-mediaplayerreason)。