From f25929e45cfbe25bb7401c9af126d353e1eaef86 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 6 Nov 2018 15:22:30 +0100 Subject: Cleanup ; make file download from CLI doable --- shard/lib/app/pagestore.ex | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shard/lib/app/pagestore.ex') 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 -- cgit v1.2.3