You are here

public function SmartlingApi::deleteFile in TMGMT Translator Smartling 8

Removes the file from Smartling.

The file will no longer be available for download. Any complete translations for the file remain available for use within the system. Smartling deletes files asynchronously and it typically takes a few minutes to complete. While deleting a file, you can not upload a file with the same fileUri.

Parameters

string $fileUri: Value that uniquely identifies the file.

Return value

string

Throws

\Drupal\tmgmt_smartling\Smartling\SmartlingApiException

File

src/Smartling/SmartlingApi.php, line 364

Class

SmartlingApi

Namespace

Drupal\tmgmt_smartling\Smartling

Code

public function deleteFile($fileUri) {
  return $this
    ->sendRequest('file/delete', [
    'fileUri' => $fileUri,
  ], 'DELETE');
}