main/core/Manager/ContentManager.php
public function deleteTranslation($locale, $id)
    {
        if ('en' === $locale) {
            $content = $this->content->findOneBy(['id' => $id]);
        } else {
            $content = $this->translations->findOneBy(['foreignKey' => $id, 'locale' => $locale]);
        }

        if ($content instanceof ContentTranslation || $content instanceof Content) {
            $this->manager->remove($content);
            $this->manager->flush();
        }
    }
public function deleteTranslation($locale, $id)
    {
        if ('en' === $locale) {
            $content = $this->content->findOneBy(['id' => $id]);
        } else {
            $content = $this->translations->findOneBy(['foreignKey' => $id, 'locale' => $locale]);
        }

        if ($content instanceof ContentTranslation || $content instanceof Content) {
            $this->manager->remove($content);
            $this->manager->flush();
        }
    }
public function deleteTranslation ( $ locale , $ id ) { if ( 'en' === $ locale ) { $ content = $ this -> content -> findOneBy ( [ 'id' => $ id ] ) ; } else { $ content = $ this -> translations -> findOneBy ( [ 'foreignKey' => $ id , 'locale' => $ locale ] ) ; } if ( $ content instanceof ContentTranslation || $ content instanceof Content ) { $ this -> manager -> remove ( $ content ) ; $ this -> manager -> flush ( ) ; } }
Delete a translation of content.

@param string $locale
@param $id
Delete a translation of content .