A
A
API
Search…
⌃K

Delete

Delete one document

Parameters:

Name
Optional / Required
Data type
Description
Default
id
required
Integer
One of your document ids
curl
PHP
JavaScript
Java
Example:
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20327033" "https://api.yumpu.com/2.0/document.json"
Example:
require_once('../yumpu.php');
$yumpu = new Yumpu();
$id = 20327033;
$deleteDocument = $yumpu->deleteDocument($id);
print_r($deleteDocument);
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);
});
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"}