Before you start
- Confirm the CLI is installed and
atlanai doctorpasses. See Install atlanai CLI. - Confirm
atlanai auth statusshows the expected account. - Confirm an active workspace context is set by running
atlanai context show. - Confirm the file record with
atlanai file get file_123before archiving. Verify the published path and workspace match the file you intend to remove.
Archive file
The command asks for confirmation before proceeding. Pass--confirm only after resolving the exact target.
Troubleshooting
For errors fromfile delete or authentication failures, see File operation errors.
Next steps
- Automate workflows: Script file operations non-interactively in CI.
See also
- Find and inspect files: Confirm the file record before archiving.
- Upload files: Upload a replacement file after archiving.