To remove a map attachment from a DITA map by its originId
, add the following lines to the FluidTopicsControlFile.xml
file:
<?xml version='1.0' encoding='utf-8'?>
<controlFile>
<resources>
<resource>
<filePath>my_map.ditamap</filePath>
<instances>
<instance>
<filePath>version1.ditaval</filePath>
<attachments>
<attachment>
<isAttached>false</isAttached>
<originId>my_attachment</originId>
</attachment>
</attachments>
</instance>
</instances>
</resource>
</resources>
</controlFile>
Where:
-
resource
filePath
expects the absolute path to the DITA map file in the archive used to upload the DITA map to Fluid Topics. It can be retrieved from the Metadata journal in thedita:mapPath
field.
-
instance
filePath
expects the absolute path to the DITAVAL file in the archive used to upload the DITA map to Fluid Topics. It can be retrieved from the Metadata journal in thedita:ditavalPath
field.
-
attachment
isAttached
expects thefalse
value to detach the attachment from the DITA map.originId
is the ID defined in theFluidTopicsControlFile.xml
file when the file was originally attached to the DITA map.