libraries/tbs/plugins/tbs_plugin_opentbs.php
function OpenXML_DeleteFile($FullPath, $RelatedTo) {

		// Delete the file in the archive
		$idx = $this->FileGetIdx($FullPath);
		if ($idx==false) return false;
		$this->FileReplace($idx, false);

		// Delete the declaration of the file
		$this->OpenXML_CTypesDeletePart('/' . $FullPath);
		 
		// Delete the relationships
		$nb = 0;
		foreach ($RelatedTo as $file) {
			$target = $this->OpenXML_GetRelativePath($FullPath, $file);
			$rels_file = $this->OpenXML_Rels_GetPath($file);
			if ($this->OpenXML_Rels_ReplaceTarget($rels_file, $target, false)) {
				$nb++;
			}
		}
		
		return $nb;
		
	}
function OpenXML_DeleteFile($FullPath, $RelatedTo) {

		// Delete the file in the archive
		$idx = $this->FileGetIdx($FullPath);
		if ($idx==false) return false;
		$this->FileReplace($idx, false);

		// Delete the declaration of the file
		$this->OpenXML_CTypesDeletePart('/' . $FullPath);
		 
		// Delete the relationships
		$nb = 0;
		foreach ($RelatedTo as $file) {
			$target = $this->OpenXML_GetRelativePath($FullPath, $file);
			$rels_file = $this->OpenXML_Rels_GetPath($file);
			if ($this->OpenXML_Rels_ReplaceTarget($rels_file, $target, false)) {
				$nb++;
			}
		}
		
		return $nb;
		
	}
Delete an XML file in the OpenXML archive.
The file is delete from the declaration file [Content_Types].xml and from the relationships of the specified files.
@param {string} $FullPath The full path of the file to delete.
@param {array}  $$RelatedTo List of the the full paths of the files than may have relationship with the file to delete.
@return {mixed} False if it is not possible to delete the file, or the number of modifier relations ship in case of success (may be 0).