Remove an Unstructured Document - Fluid Topics - 3.4 - Technical Notes

Upload Unstructured Documents to Fluid Topics

Product
Fluid Topics
Fluid Topics Version
3.4
Category
Technical Notes
Language
English
Target Audience
public

To remove an unstructured document from the Fluid Topics portal:

  1. Create or modify the FluidTopicsControlFile.xml control file.
  2. Set the status of the specified ft:resource to deleted.
  3. Create an archive containing the modified FluidTopicsControlFile.xml control file.

    If an ft:resource@id identifier exists for a resource, it is not necessary to include the file in the archive as using the identifier is enough.

    Otherwise, it is necessary to list the resource and use the same path and filename as when you uploaded it the first time.

  4. Upload the archive using the Web Service.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<ft:resources xmlns:ft="http://ref.fluidtopics.com/v2/ft#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ref.fluidtopics.com/v3/udControlFile.xsd">

<!-- To remove an Unstructured Document -->
<ft:resource id="${identifier of the resource to remove}" status="deleted">
<ft:file>${COMPLETE path of the resource to remove if necessary}</ft:file>
</ft:resource>

</ft:resources>

In the case where processingPolicy=”package”, the resources not listed in the control file are just processed with the following default parameters:

<ft:resource status="deleted">
<ft:file>path/filename</ft:file>
</ft:resource>

The following documents have been uploaded:

<?xml version="1.0" encoding="UTF-8"?>

<ft:resources xmlns:ft="http://ref.fluidtopics.com/v2/ft#" processingPolicy="controlFile" extractFileMetadata="yes">

<ft:resource xml:lang="en" status="visible">
<ft:file>FluidTopics-flyer-2015-EN.pdf</ft:file>
<ft:description>Fluid Topics Flyer - English</ft:description>
<ft:dispName>Fluid Topics Flyer - English</ft:dispName>
<ft:facets>
<ft:facet name="prodname">Fluid Topics</ft:facet>
<ft:facet name="version">Fluid Topics v2.7</ft:facet>
<ft:facet name="category">Flyer</ft:facet>
</ft:facets>
</ft:resource>

<ft:resource xml:lang="en" status="visible">
<ft:file>FluidTopics-TechNote-RestAPI-2015d.pdf</ft:file>
<ft:description>Fluid Topics Rest API Technical Notes</ft:description>
<ft:dispName>Fluid Topics Rest API Technical Notes</ft:dispName>
<ft:facets>
<ft:facet name="prodname">Fluid Topics</ft:facet>
<ft:facet name="version">Fluid Topics v2.7</ft:facet>
<ft:facet name="category">Technical Notes</ft:facet>
</ft:facets>
</ft:resource>

<ft:resource xml:lang="en" status="visible">
<ft:file>FluidTopics-Zoom-Architecture-2015b.pdf</ft:file>
<ft:description>Fluid Topics Architecture</ft:description>
<ft:dispName>Fluid Topics Architecture Overview</ft:dispName>
<ft:facets>
<ft:facet name="prodname">Fluid Topics</ft:facet>
<ft:facet name="version">Fluid Topics v2.7</ft:facet>
<ft:facet name="category">Reference Guide</ft:facet>
</ft:facets>
</ft:resource>

</ft:resources>

To remove FluidTopics-flyer-2015-EN.pdf from the Fluid Topics portal, upload the following control file:

<?xml version="1.0" encoding="UTF-8"?>

<ft:resources xmlns:ft="http://ref.fluidtopics.com/v2/ft#" processingPolicy="controlFile" extractFileMetadata="yes">

<ft:resource status="deleted">
<ft:file>FluidTopics-flyer-2015-EN.pdf</ft:file>
</ft:resource>

</ft:resources>