A
A
API
Search…
Delete

Delete one collection

Parameters:

Name
Optional / Required
Data type
Description
Default
id
required
String
One of your collection ids
curl
PHP
JavaScript
Java
Example:
1
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=omkYGduXowlyx9WF" "http://api.yumpu.com/2.0/collection.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$id = 'omkYGduXowlyx9WF';
4
$deleteCollection = $yumpu->deleteCollection($id);
5
print_r($deleteCollection);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: 'omkYGduXowlyx9WF'
5
};
6
yumpu.deleteCollection(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 = "omkYGduXowlyx9WF";
3
System.out.println(y.deleteCollection(id));
Copied!
Whatever language you are using, the result will be the same.
1
{"state":"success"}
Copied!
Last modified 1yr ago