diff --git a/src/mdbx.c++ b/src/mdbx.c++ index f26a9de6..d6e82e4c 100644 --- a/src/mdbx.c++ +++ b/src/mdbx.c++ @@ -1346,7 +1346,7 @@ __cold path env::get_path() const { } __cold bool env::remove(const char *pathname, const remove_mode mode) { - return error::boolean_or_throw( + return !error::boolean_or_throw( ::mdbx_env_delete(pathname, MDBX_env_delete_mode_t(mode))); } @@ -1356,7 +1356,7 @@ __cold bool env::remove(const ::std::string &pathname, const remove_mode mode) { #if defined(_WIN32) || defined(_WIN64) __cold bool env::remove(const wchar_t *pathname, const remove_mode mode) { - return error::boolean_or_throw( + return !error::boolean_or_throw( ::mdbx_env_deleteW(pathname, MDBX_env_delete_mode_t(mode))); }