Documentation

Configuration / delete.exclude_directory_pattern

This option can be used to exclude all dir names matching the specified regexp pattern.

$moxieManagerConfig['delete.exclude_directory_pattern'] = "/^notthis$|^notthat$/i";
<add key="delete.exclude_directory_pattern" value="/^notthis$|^notthat$/i" />