Skip to content

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

ArgumentRequiredDescription
caseIdYesCase ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--documentoptionYesDocument ID

Examples

sh
pega documents delete MYAPP-CASE-1 --document DOC-1

documents get

Get metadata for a specific document

Usage

bash
pega documents get <documentId> [flags]

Source endpoint: GET /documents/{documentID}view command source

Arguments

ArgumentRequiredDescription
documentIdYesDocument ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile

Examples

sh
pega documents get DOC-1