Added '--folder' option to limit the search for indexing and cleanup operations.