Craft\SeomaticController::actionDeleteMeta PHP Method

actionDeleteMeta() public method

* -------------------------------------------------------------------------------- Save a meta --------------------------------------------------------------------------------
public actionDeleteMeta ( )
    public function actionDeleteMeta()
    {
        $this->requirePostRequest();
        $metaId = craft()->request->getRequiredPost('metaId');
        if (craft()->elements->deleteElementById($metaId)) {
            craft()->userSession->setNotice(Craft::t('SEOmatic Meta deleted.'));
            $this->redirectToPostedUrl();
        } else {
            craft()->userSession->setError(Craft::t('Couldn’t delete SEOmatic Meta.'));
        }
    }