eZ\Publish\Core\REST\Client\SectionService::deleteSection PHP Method

deleteSection() public method

Deletes $section from content repository.
public deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section )
$section eZ\Publish\API\Repository\Values\Content\Section
    public function deleteSection(Section $section)
    {
        $response = $this->client->request('DELETE', $section->id, new Message(array('Accept' => $this->outputVisitor->getMediaType('Section'))));
        if (!empty($response->body)) {
            $this->inputDispatcher->parse($response);
        }
    }