PunkAve\FileUploaderBundle\Services\FileManager::removeFiles PHP Метод

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

If you pass consistent options to this method and handleFileUpload with regard to paths, then you will get consistent results.
public removeFiles ( $options = [] )
    public function removeFiles($options = array())
    {
        $options = array_merge($this->options, $options);
        $folder = $options['file_base_path'] . '/' . $options['folder'];
        if (!strlen(trim($options['file_base_path']))) {
            throw \Exception("file_base_path option looks empty, bailing out");
        }
        if (!strlen(trim($options['folder']))) {
            throw \Exception("folder option looks empty, bailing out");
        }
        system("rm -rf " . escapeshellarg($folder));
    }