Remove Disabled Code TaskBOT

This Bot Utility scans an AA export ZIP, strips all disabled code, and delivers a clean, review-ready ZIP in seconds

Top Benefits

  • Cleaner Codebase — Removes all disabled nodes instantly, making bots easier to read and maintain.
  • Faster Reviews — Audits and peer reviews take less time with no inactive steps cluttering the code.
  • Safer Production — Eliminates the risk of accidentally re-enabling disabled code in live environments.

Tasks

  • Input — Accepts an AA export ZIP file path as the input source
  • Processing — Python script intelligently scans every node and removes all disabled code automatically.
  • Output — Delivers the cleaned ZIP file to the same directory as the original, ready for re-import.
  • Zero External Dependencies — Built entirely on Python's native libraries, requiring no additional installations
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.

Setup process

Install

Download the AI Agent and follow the instructions to install it in your AAE Control Room.

Configure

Use the AI Agent in a bot, configure keys and other credentials the AI Agent will need (see the ReadMe for details.)

Run

That's it - now the AI Agent is ready to get going!

Requirements and Inputs

  • Python

Customer Reviews

5.0(1 review)
5 star100%
4 star0%
3 star0%
2 star0%
1 star0%
Ease of Use5.0
Functionality & Reliability5.0
Documentation & Samples5.0

Great stuff

This utility worked exactly as expected by removing all disabled code and providing a clean version of the source.

Vikas M.