A
A
API
Search…
Delete

Delete an existing section

Parameters:

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