anchor.diff:                        ok
                 end
         end, ok, {vmq, Tab}).
  -
  -del_dir(Dir) ->
  -    lists:foreach(fun(D) ->
  -                          ok = file:del_dir(D)
  -                  end, del_all_files([Dir], [])).
  -
  -del_all_files([], EmptyDirs) ->
  -    EmptyDirs;
  -del_all_files([Dir | T], EmptyDirs) ->
  -    {ok, FilesInDir} = file:list_dir(Dir),
  -    {Files, Dirs} = lists:foldl(fun(F, {Fs, Ds}) ->
  -                                        Path = Dir ++ "/" ++ F,
  -                                        case filelib:is_dir(Path) of
  -                                            true ->
  -                                                {Fs, [Path | Ds]};
  -                                            false ->
  -                                                {[Path | Fs], Ds}
  -                                        end
  -                                end, {[],[]}, FilesInDir),
  -    lists:foreach(fun(F) ->
  -                          ok = file:delete(F)
  -                  end, Files),
  -    del_all_files(T ++ Dirs, [Dir | EmptyDirs]).
  
positive.code:         _ ->
              ok
      end.
  
  reset_all() ->
      {ok, PlumtreeDir} = application:get_env(plumtree, plumtree_data_dir),
      filelib:ensure_dir(PlumtreeDir ++ "/ptmp"),
      del_dir(PlumtreeDir),
      MsgStoreDir = proplists:get_value(store_dir, application:get_env(vmq_server, msg_store_opts, [])),
      filelib:ensure_dir(MsgStoreDir ++ "/ptmp"),
      del_dir(MsgStoreDir).
  
  reset_tables() ->
      _ = [reset_tab(T) || T <- [subscriber, config, retain]],
  
negative.code:                                             {size,10485760},
                                              {date,"$D0"},
                                              {count,5}]}]),
      start_server_(StartNoAuth),
      disable_all_plugins().
  
  