diff options
author | Alex Auvolat <alex@adnab.me> | 2018-11-06 15:22:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-11-06 15:22:30 +0100 |
commit | f25929e45cfbe25bb7401c9af126d353e1eaef86 (patch) | |
tree | ba789ca3de36b777d2c7d2ac500721f38732133b /shard/lib/app/pagestore.ex | |
parent | 2973cf99c5b677c71717d916f83212bc2e6b36dc (diff) | |
download | shard-f25929e45cfbe25bb7401c9af126d353e1eaef86.tar.gz shard-f25929e45cfbe25bb7401c9af126d353e1eaef86.zip |
Cleanup ; make file download from CLI doable
Diffstat (limited to 'shard/lib/app/pagestore.ex')
-rw-r--r-- | shard/lib/app/pagestore.ex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shard/lib/app/pagestore.ex b/shard/lib/app/pagestore.ex index 0cbb10a..79d39b7 100644 --- a/shard/lib/app/pagestore.ex +++ b/shard/lib/app/pagestore.ex @@ -329,4 +329,11 @@ defmodule SApp.PageStore do def set_roots(pid, roots) do GenServer.cast(pid, {:set_roots, roots}) end + + @doc""" + Delete the page store. The process is stopped and the data file is deleted from disk. + """ + def delete_store(pid) do + GenServer.call(pid, :delete_store) + end end |