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
curl

Example:

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

Example:

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

Example:

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

Example:

Yumpu y = new Yumpu("your access token");
String id = "46gGMFOTEVf3SamD_ZmUlVyovE9RMt0su";
System.out.println(y.deleteSection(id));

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

{"state":"success"}