Example to remove a map attachment from one instance of a DITA map - Fluid Topics - Latest

Map Attachments

Category
Technical Notes
Audience
public
Version
Latest

The pufferfish.pdf file is attached to the Animals DITA map in two instances, Novice and Intermediate. The file's originIdis amazing_pufferfish.

The following lines show how to remove the pufferfish.pdf file from the Novice instance of the Animals DITA map:

<?xml version='1.0' encoding='utf-8'?>
<controlFile>
  <resources>
    <resource>
      <filePath>_animals.ditamap</filePath>
      <instances>
        <instance>
          <filePath>Novice.ditaval</filePath>
          <attachments>
            <attachment>
              <isAttached>false</isAttached>
              <originId>amazing_pufferfish</originId>
            </attachment>
          </attachments>
        </instance>
      </instances>
    </resource>
  </resources>
</controlFile>

Once published to Fluid Topics, the Goldfish file is no longer available in the Attachments tab when viewing the Novice instance of the Animals DITA map.