silverbullet/website/API/debug.md

433 B

Debug API

The Debug API provides functions for debugging and resetting the application state.

debug.reset_client()

Completely wipes the client state, including cached files and databases.

Example:

debug.reset_client()
print("Client state has been reset")

debug.cleanup()

Wipes the entire state KV store and the entire space KV store.

Example:

debug.cleanup()
print("All KV stores have been wiped")