src/File.php
public static function delete($path)
  {
    $path = Path::clean($path);
    
    $fs = new Filesystem();
    
    try {
      $fs->remove($path);
    }
    catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_DELETING').' - ('.$e->getMessage().')');
    }
    
    return true;
  }
public static function delete($path)
  {
    $path = Path::clean($path);
    
    $fs = new Filesystem();
    
    try {
      $fs->remove($path);
    }
    catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_DELETING').' - ('.$e->getMessage().')');
    }
    
    return true;
  }
Delete a file or array of files

@param   string    $path  The file name
@return   boolean   True on success