eZ\Publish\Core\REST\Server\Controller\ObjectState::deleteObjectState PHP Method

deleteObjectState() public method

The given object state is deleted.
public deleteObjectState ( $objectStateId ) : eZ\Publish\Core\REST\Server\Values\NoContent
$objectStateId
return eZ\Publish\Core\REST\Server\Values\NoContent
    public function deleteObjectState($objectStateId)
    {
        $this->objectStateService->deleteObjectState($this->objectStateService->loadObjectState($objectStateId));
        return new Values\NoContent();
    }