public function run($id, $applicablePropertyModelId, $hard = false)
    {
        /** @var PropertyGroup $model */
        $model = PropertyGroup::loadModel(
            $id,
            false,
            true,
            86400,
            new NotFoundHttpException("PropertyGroup model with specified id not found")
        );

        if ($hard === false) {
            ($model->delete() !== false && $model->isDeleted() === true) ?
                Yii::$app->session->setFlash('info', Module::t('app', 'Property group has been hidden.')) :
                Yii::$app->session->setFlash('warning', Module::t('app', 'Property group  has not been hidden.'));
        } elseif ((bool)$hard === true) {
            $model->hardDelete() !== false ?
                Yii::$app->session->setFlash('danger', Module::t('app', 'Item has been deleted.')) :
                Yii::$app->session->setFlash('warning', Module::t('app', 'Item has not been deleted.'));
        }

        return $this->controller->redirect(
            [
                $this->listPropertyGroupsActionId,
                'applicablePropertyModelId' => $applicablePropertyModelId,
            ]
        );
    }