public function deleteSubtree($locationPath)
    {
        $location = $this->locationService->loadLocation(
            $this->extractLocationIdFromPath($locationPath)
        );
        $this->locationService->deleteLocation($location);

        return new Values\NoContent();
    }
public function deleteSubtree($locationPath)
    {
        $location = $this->locationService->loadLocation(
            $this->extractLocationIdFromPath($locationPath)
        );
        $this->locationService->deleteLocation($location);

        return new Values\NoContent();
    }
public function deleteSubtree ( $ locationPath ) { $ location = $ this -> locationService -> loadLocation ( $ this -> extractLocationIdFromPath ( $ locationPath ) ) ; $ this -> locationService -> deleteLocation ( $ location ) ; return new Values \ NoContent ( ) ; }
Deletes a location.

@param string $locationPath

@return \eZ\Publish\Core\REST\Server\Values\NoContent
Deletes a location .