Text.php
public function removeAll()
    {
        $fs = $this->env->getFileSystem();
        $fs->deleteFile($this->baseDir . $this->pageName . '.js');
        $fs->deleteFile($this->outdatedDir . $this->baseLang . '/' . $this->pageName . '.json');
        foreach ($this->extraLangs as $language) {
            $fs->deleteFile($this->baseDir . $language . '/' . $this->pageName . '.js');
            $fs->deleteFile($this->outdatedDir . $language . '/' . $this->pageName . '.json');
        }
    }
public function removeAll()
    {
        $fs = $this->env->getFileSystem();
        $fs->deleteFile($this->baseDir . $this->pageName . '.js');
        $fs->deleteFile($this->outdatedDir . $this->baseLang . '/' . $this->pageName . '.json');
        foreach ($this->extraLangs as $language) {
            $fs->deleteFile($this->baseDir . $language . '/' . $this->pageName . '.js');
            $fs->deleteFile($this->outdatedDir . $language . '/' . $this->pageName . '.json');
        }
    }
Removes all files related to a text page