eZ\Publish\Core\REST\Server\Controller\Location::deleteSubtree PHP Method

deleteSubtree() public method

Deletes a location.
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();
    }