public deleteSubtree ( string $locationPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$locationPath | string | |
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public function deleteSubtree($locationPath)
{
$location = $this->locationService->loadLocation($this->extractLocationIdFromPath($locationPath));
$this->locationService->deleteLocation($location);
return new Values\NoContent();
}