Contao\Files::delete PHP Метод

delete() публичный Метод

Delete a file
public delete ( string $strFile ) : boolean
$strFile string The file name
Результат boolean True if the operation was successful
    public function delete($strFile)
    {
        $this->validate($strFile);
        return unlink(TL_ROOT . '/' . $strFile);
    }