deleteContent() public method

The content is deleted. If the content has locations (which is required in 4.x) on delete all locations assigned the content object are deleted via delete subtree.
public deleteContent ( mixed $contentId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$contentId mixed
return eZ\Publish\Core\REST\Server\Values\NoContent
 public function deleteContent($contentId)
 {
     if (!$this->isUserContent($contentId)) {
         return parent::deleteContent($contentId);
     }
     $this->repository->getUserService()->deleteUser($this->repository->getUserService()->loadUser($contentId));
     return new NoContent();
 }