Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This method lets you delete source files, instructions files and translated files from the IN, OUT and sandbox directories.

URL

(DELETE) /api/files/file?token=&locale=&filename=

Please note that this is an HTTP DELETE action.

PARAMETERS

Parameters are:

token

The session token obtained when connecting.

locale

Either the source language code, a target language code or "sandbox" to delete sandbox files (used to obtain cost quotations).

Language codes are ISO 2 letter codes such as “en”, “fr”, “en-GB”, “en-US”, etc.

filename

The relative path of the file including sub-directories.

  • This can be a simple file name like “myfile.xml”.
  • Or, it can include directories such as “folder1\folder2\myfile.xml”.

Note the use of backslash separators as it is common on Windows systems.

RESULTS

The method returns no result. An HTTP status of 204 indicates success.

If the file does not exist, the method returns HTTP 400.

See HTTP status values for error handling.

 

 

 

 

  • No labels