A
A
API
Search…
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:
1
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20327033" "http://api.yumpu.com/2.0/document.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$id = 20327033;
4
$deleteDocument = $yumpu->deleteDocument($id);
5
print_r($deleteDocument);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: 20327033
5
};
6
yumpu.deleteDocument(parameters, function(statusCode, document){
7
console.log('Status: ' + statusCode);
8
console.log(document);
9
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
String id = "20327033";
3
System.out.println(y.deleteDocument(id));
Copied!
Whatever language you are using, the result will be the same.
1
{"state":"success"}
Copied!
Last modified 1yr ago