Skip to main content

remove

Function remove 

Source
pub fn remove(project: &Path, session_id: &str) -> Result<()>
Expand description

Remove one session’s scratchpad — the delete-conversation cascade. A directory whose lock is held by a live process is left alone (that session is still open, possibly in another mermaid); the sweep reaps it later.

§Errors

Removing the directory tree. A session with no scratchpad, and one whose lock a live process holds, are both Ok — so an Ok does not mean the directory is gone.