Documentation
Configuration / delete.include_directory_pattern
This option can be used to exclude all dir names but those matching the specified regexp pattern.
$moxieManagerConfig['delete.include_directory_pattern'] = "/^dir|moredir$/i";
<add key="delete.include_directory_pattern" value="/^dir|moredir$/i" />