OEModule\PatientTicketing\controllers\AdminController::actionDeleteQueue PHP Method

actionDeleteQueue() public method

Will only successfully delete a Queue if no ticket has ever been assigned to it, otherwise will throw an exception. Should only have been called when the values return by actionGetQueueTicketCount are zero.
public actionDeleteQueue ( )
    public function actionDeleteQueue()
    {
        $qs = Yii::app()->service->getService(self::$QUEUE_SERVICE);
        $qr = $qs->read((int) @$_POST['id']);
        $qs->delete($qr->getId());
        echo 1;
    }