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

Upload Unstructured Documents to Fluid Topics

Product
Fluid Topics
FT_Version
3.2
Category
Technical Notes
audience
public

To remove an unstructured document from the Fluid Topics portal, perform the following steps:

  1. Create a (or open an existing) 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 you have previously defined an ft:resource@id identifier for that resource, you do not need to include the file in the archive: using the identifier is enough.

    Otherwise, you need 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.
<?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>Price_List.pdf</ft:file>
    <ft:description>Price List of OleanDor Time Machines</ft:description>
    <ft:dispName>OleanDor Price List</ft:dispName>
    <ft:facets>
      <ft:facet name="category">Marketing</ft:facet>
    </ft:facets>
  </ft:resource>
                
  <ft:resource xml:lang="en" status="visible">
    <ft:file>Time_Zone_Cheatsheet.pdf</ft:file>
    <ft:description>Cheatsheet to help you safely choose a time zone</ft:description>
    <ft:dispName>Time Zone Cheatsheet</ft:dispName>
    <ft:facets>
      <ft:facet name="category">TechDoc</ft:facet>
    </ft:facets>
  </ft:resource>
                
</ft:resources>

To remove Price_List.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>Price_List.pdf</ft:file>
  </ft:resource>
                
</ft:resources>