documents
documents delete
Remove a document linked to a case
Usage
bash
pega documents delete <caseId> [flags]Source endpoint: DELETE /cases/{caseID}/documents/{documentID} — view command source
Arguments
| Argument | Required | Description |
|---|---|---|
caseId | Yes | Case ID |
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--format | option | No | json | Output format (json, compact, yaml, table) |
--fields | option | No | Comma-separated top-level fields to include in output | |
--dry-run | boolean | No | Print HTTP request details and exit without executing | |
--quiet | boolean | No | Suppress all stderr progress/warning output | |
--verbose | boolean | No | Emit full HTTP request/response details to stderr | |
--no-cache | boolean | No | Bypass token file cache; perform fresh OAuth exchange | |
--profile | option | No | default | Named config profile |
--document | option | Yes | Document ID |
Examples
sh
pega documents delete MYAPP-CASE-1 --document DOC-1documents get
Get metadata for a specific document
Usage
bash
pega documents get <documentId> [flags]Source endpoint: GET /documents/{documentID} — view command source
Arguments
| Argument | Required | Description |
|---|---|---|
documentId | Yes | Document ID |
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--format | option | No | json | Output format (json, compact, yaml, table) |
--fields | option | No | Comma-separated top-level fields to include in output | |
--dry-run | boolean | No | Print HTTP request details and exit without executing | |
--quiet | boolean | No | Suppress all stderr progress/warning output | |
--verbose | boolean | No | Emit full HTTP request/response details to stderr | |
--no-cache | boolean | No | Bypass token file cache; perform fresh OAuth exchange | |
--profile | option | No | default | Named config profile |
Examples
sh
pega documents get DOC-1