Documentation Index Fetch the complete documentation index at: https://superdoc-caio-pizzol-sd-3104-metadata-api.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
Field Type Required Description targetobject \ object yes One of: object, object
Example request
{
"target" : {
"id" : "id-001"
}
}
Output fields
Variant 1 (success=true)
Field Type Required Description idstring no successtrueyes Constant: true targetobject \ object yes One of: object, object
Variant 2 (success=false)
Field Type Required Description failureobject yes failure.codestring yes failure.detailsany no failure.messagestring yes successfalseyes Constant: false
Example response
{
"id" : "id-001" ,
"success" : true ,
"target" : {
"id" : "id-001"
}
}
Pre-apply throws
TARGET_NOT_FOUND
INVALID_TARGET
CAPABILITY_UNAVAILABLE
Non-applied failure codes
Raw schemas
{
"oneOf" : [
{
"additionalProperties" : false ,
"properties" : {
"id" : {
"minLength" : 1 ,
"type" : "string"
},
"success" : {
"const" : true
},
"target" : {
"oneOf" : [
{
"additionalProperties" : false ,
"properties" : {
"id" : {
"minLength" : 1 ,
"type" : "string"
}
},
"required" : [
"id"
],
"type" : "object"
},
{
"additionalProperties" : false ,
"properties" : {
"partName" : {
"minLength" : 1 ,
"type" : "string"
}
},
"required" : [
"partName"
],
"type" : "object"
}
]
}
},
"required" : [
"success" ,
"target"
],
"type" : "object"
},
{
"additionalProperties" : false ,
"properties" : {
"failure" : {
"additionalProperties" : false ,
"properties" : {
"code" : {
"type" : "string"
},
"details" : {},
"message" : {
"type" : "string"
}
},
"required" : [
"code" ,
"message"
],
"type" : "object"
},
"success" : {
"const" : false
}
},
"required" : [
"success" ,
"failure"
],
"type" : "object"
}
]
}
{
"additionalProperties" : false ,
"properties" : {
"id" : {
"minLength" : 1 ,
"type" : "string"
},
"success" : {
"const" : true
},
"target" : {
"oneOf" : [
{
"additionalProperties" : false ,
"properties" : {
"id" : {
"minLength" : 1 ,
"type" : "string"
}
},
"required" : [
"id"
],
"type" : "object"
},
{
"additionalProperties" : false ,
"properties" : {
"partName" : {
"minLength" : 1 ,
"type" : "string"
}
},
"required" : [
"partName"
],
"type" : "object"
}
]
}
},
"required" : [
"success" ,
"target"
],
"type" : "object"
}
{
"additionalProperties" : false ,
"properties" : {
"failure" : {
"additionalProperties" : false ,
"properties" : {
"code" : {
"type" : "string"
},
"details" : {},
"message" : {
"type" : "string"
}
},
"required" : [
"code" ,
"message"
],
"type" : "object"
},
"success" : {
"const" : false
}
},
"required" : [
"success" ,
"failure"
],
"type" : "object"
}