Documentation

Configuration / delete.extensions

This option enables you to restrict rename to only the matching file extensions.

$moxieManagerConfig['delete.extensions'] = "gif,jpg";
<add key="delete.extensions" value="gif,jpg" />