Ordner löschen

Delete Crowdin project directory. All nested files and directories will be deleted too.


Note: Use the combination of project identifier, username, and account key to pass to this endpoint.

POST https://api.crowdin.com/api/project/{project-identifier}/delete-directory?login={username}&account-key={account-key}&name={directory name}


Name Wert Beschreibung
name benötigt String Verzeichnispfad (oder nur der Name, falls es das Stammverzeichnis ist).
branch optional String Name of the related version branch (Versions Management). Specify only if you want to delete a directory inside this branch.
json optional String Könnte keinen Wert enthalten. Defines that response should be in JSON format.
jsonp optional String Name der Rückruf Funktion. Defines that response should be in JSONP format.
project-identifier String Projekt-ID.
login String Ihr Nutzername auf Crowdin.
account-key String Ihr Konto API-Schlüssel.


If successful, this method returns a XML structure, as it is shown below.
<?xml version="1.0" encoding="UTF-8"?>
Unsuccessful response sample:
<?xml version="1.0" encoding="UTF-8"?>
  <message>API key is not valid</message>


curl \
  -F "name=localizable" \
$post_params = array();
$request_url = 'https://api.crowdin.com/api/project/{project-identifier}/delete-directory?login={username}&account-key={account-key}';
$post_params['name'] = '/localizable/texts';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);

$result = curl_exec($ch);

echo $result;

War dieser Artikel hilfreich?