Delete

Delete one document

Parameters:

Name

Optional / Required

Data type

Description

Default

id

required

Integer

One of your document ids

‚Äč

curl
PHP
JavaScript
Java
curl

Example:

curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20327033" "http://api.yumpu.com/2.0/document.json"
PHP

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$id = 20327033;
$deleteDocument = $yumpu->deleteDocument($id);
print_r($deleteDocument);
JavaScript

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
id: 20327033
};
yumpu.deleteDocument(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Java

Example:

Yumpu y = new Yumpu("your access token");
String id = "20327033";
System.out.println(y.deleteDocument(id));

Whatever language you are using, the result will be the same.

{"state":"success"}