aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/main.cpp')
-rw-r--r--src/zenserver/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp
index d57722143..f482e6737 100644
--- a/src/zenserver/main.cpp
+++ b/src/zenserver/main.cpp
@@ -334,6 +334,11 @@ main(int argc, char* argv[])
ZenServerOptions ServerOptions;
ParseCliOptions(argc, argv, ServerOptions);
+ if (ServerOptions.IsCleanStart)
+ {
+ DeleteDirectories(ServerOptions.DataDir);
+ }
+
if (!std::filesystem::exists(ServerOptions.DataDir))
{
ServerOptions.IsFirstRun = true;