customXml.parts.remove
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.
mutates documentdry runnon-idempotent
doc.customXml.parts.remove(…)Expected result
Returns a CustomXmlPartsMutationResult indicating success or a failure.
Inputs
targetid | partNamerequiredid
idstringrequiredpartName
partNamestringrequiredResult
Output fields
true
successtruerequiredtargetid | partNamerequiredid
idstringrequiredpartName
partNamestringrequiredidstringfalse
successfalserequiredfailureobjectrequiredFields
codestringrequiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETCAPABILITY_UNAVAILABLE
Non-applied receipt codes
TARGET_NOT_FOUND
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas