diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user_guide/expiration.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/user_guide/expiration.md b/docs/user_guide/expiration.md index 5ceefb5..ef1d9e1 100644 --- a/docs/user_guide/expiration.md +++ b/docs/user_guide/expiration.md @@ -165,7 +165,8 @@ To delete expired responses, use {py:meth}`.BaseCache.delete`: Or, if you have patched ``requests`` using {py:func}`.install_cache`: ```python ->>> requests_cache.remove_expired_responses() +>>> import requests_cache +>>> requests_cache.delete(expired=True) ``` You can also remove responses older than a certain time: |