diff --git a/repmgr.c b/repmgr.c index eb47a768..6334c80c 100644 --- a/repmgr.c +++ b/repmgr.c @@ -3027,7 +3027,7 @@ stop_backup: if (mode == barman) { /* In Barman mode, remove local_repmgr_directory */ - rmdir(local_repmgr_directory); + rmtree(local_repmgr_directory, true); } switch(mode)