if st.checkbox("Clear All"):
  # Clear values from all memoized functions
  st.experimental_memo.clear()
```
Clear singleton
Clear all singleton caches.
```python
@st.experimental_singleton
def get_database_session(url):
  # Create a database session object that points to the URL.
  return session
if st.button("Clear All"):
  # Clears all singleton caches:
  st.experimental_singleton.clear()
```
