The AA Bot Utility accepts an Automation Anywhere export ZIP file as input and processes it through a streamlined, fully automated pipeline. The Python script extracts the ZIP contents and recursively scans every bot file within the package, traversing each node at any depth of nesting to identify disabled code. Once detected, all disabled nodes are permanently stripped from the file structure, leaving only active, production-ready code intact.
No external libraries are required — the entire process runs on Python's built-in modules, ensuring seamless execution across environments without any additional setup or installations.
Once cleaning is complete, the utility repackages the sanitised bot files into a new ZIP and saves it directly to the same directory as the original input file with "_Cleaned", maintaining a familiar and predictable output location.
The result is a clean, clutter-free export ZIP — ready for immediate re-import into Automation Anywhere — with all disabled steps removed, reducing review effort, minimising human error, and ensuring a safer, more maintainable codebase across the organisation.
Great stuff
This utility worked exactly as expected by removing all disabled code and providing a clean version of the source.