uipath-cli
latest
false
UiPath CLI user guide
- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- activities find
- activities get-default-xaml
- analyze
- analyzer-rules list
- build
- cleanup
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- get-object-repository
- init
- instances list
- pack
- packages inspect
- packages install
- packages versions
- publish
- remote
- restore
- run, debug & execution
- settings
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- tm
- uia
- validate
- workflow-examples get
- workflow-examples list
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
uip rpa cleanup
Syntax and options for `uip rpa cleanup`, which removes unused items from a UiPath Studio project, or only detects them with `--dry-run`.
uip rpa cleanup removes unused items from a UiPath Studio project. It modifies the project sources in place. Pass --dry-run to only detect the unused items and leave every project file unchanged.
Synopsis
uip rpa cleanup [project-dir] [options]
uip rpa cleanup [project-dir] [options]
[project-dir]— path to the project directory, itsproject.jsonfile, or a.uiparchive. Defaults to--project-dir, or the current directory. A.uiparchive is accepted only with--dry-run.
Options
| Flag | Description |
|---|---|
--dry-run | Detect unused items without modifying any project files. |
--skip-imports | Keep references to the removed items in the project's files, instead of cleaning up the references that become unused. |
--project-dir <path> | Path to the project directory. Alternative to the positional argument. |
--exclude-configured-sources | Ignore user and machine NuGet sources during dependency resolution. |
--nuget-sources-config-path <path> | Path to a NuGet sources configuration file. |
--feed-folder <name> | Resolve library dependencies from this Orchestrator folder's feed instead of every tenant feed. Accepts a folder name or a fully qualified path. |
--log-level <level> | Log level. Defaults to Warn. |
For the complete option list on your installed tool version, run:
uip rpa cleanup --help
uip rpa cleanup --help
Examples
# List the unused items in the project in the current directory, without changing anything
uip rpa cleanup --dry-run
# Remove the unused items from a project
uip rpa cleanup ./MyProject
# Check a .uip archive for unused items
uip rpa cleanup ./MyProject.uip --dry-run
# List the unused items in the project in the current directory, without changing anything
uip rpa cleanup --dry-run
# Remove the unused items from a project
uip rpa cleanup ./MyProject
# Check a .uip archive for unused items
uip rpa cleanup ./MyProject.uip --dry-run
Data shape (--output json)
| Field | Description |
|---|---|
Success | true when the cleanup completed. |
DryRun | true when the command ran with --dry-run and changed no files. |
UnusedItems | The unused items found in the project. |
CleanedFiles | The project files the cleanup modified. Empty with --dry-run. |
ToolDetails | Additional details from the packager, when it reports any. |
Running without --dry-run against a .uip archive fails with exit code 1, because an archive can't be cleaned in place.
Related
uip rpa build— compile the project after a cleanup.uip rpa pack— package the project.uip rpa— the full list ofuip rpacommands.