aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/app/pagestore.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-11-06 15:22:30 +0100
committerAlex Auvolat <alex@adnab.me>2018-11-06 15:22:30 +0100
commitf25929e45cfbe25bb7401c9af126d353e1eaef86 (patch)
treeba789ca3de36b777d2c7d2ac500721f38732133b /shard/lib/app/pagestore.ex
parent2973cf99c5b677c71717d916f83212bc2e6b36dc (diff)
downloadshard-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.ex7
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