public function deleteContentTypeDraft($contentTypeId)
    {
        $contentTypeDraft = $this->contentTypeService->loadContentTypeDraft($contentTypeId);
        $this->contentTypeService->deleteContentType($contentTypeDraft);

        return new Values\NoContent();
    }
public function deleteContentTypeDraft($contentTypeId)
    {
        $contentTypeDraft = $this->contentTypeService->loadContentTypeDraft($contentTypeId);
        $this->contentTypeService->deleteContentType($contentTypeDraft);

        return new Values\NoContent();
    }
public function deleteContentTypeDraft ( $ contentTypeId ) { $ contentTypeDraft = $ this -> contentTypeService -> loadContentTypeDraft ( $ contentTypeId ) ; $ this -> contentTypeService -> deleteContentType ( $ contentTypeDraft ) ; return new Values \ NoContent ( ) ; }
The given content type draft is deleted.

@param $contentTypeId

@return \eZ\Publish\Core\REST\Server\Values\NoContent
The given content type draft is deleted .