Summary
Remove a Custom XML Data Storage Part and clean up all linked package files (item, props, rels, content-types entry). v1 partName targeting is limited to Word-style customXml/itemN.xml paths.- Operation ID:
customXml.parts.remove - API member path:
editor.doc.customXml.parts.remove(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a CustomXmlPartsMutationResult indicating success or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object | object | yes | One of: object, object |
Example request
Output fields
Variant 1 (success=true)
| Field | Type | Required | Description |
|---|---|---|---|
id | string | no | |
success | true | yes | Constant: true |
target | object | object | yes | One of: object, object |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | string | yes | |
failure.details | any | no | |
failure.message | string | yes | |
success | false | yes | Constant: false |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETCAPABILITY_UNAVAILABLE
Non-applied failure codes
TARGET_NOT_FOUND
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

