Converted line endings and added memory management.

Converted line endings of user batch delete script and added a few
directives to free up memory (the script would throw an out-of-memory
exception in case of too many objects to delete).