# Removing Orphaned/Unused Rules

The removeorphanedrules command is a function that removes unused rules from REQs in the specified repository. Prior to the creation of this function, the only way to remove unused rules is by opening a single REQ file in the RE Tool and executing the Build function, which then prompts you to remove unused rules. This function can be used to remove unused rules for all REQ files in a given repository. The command line to build a repository is as follows: ReqAdmin removeorphanedrules <Path to repository>

Parent topic: Command Line Options