public static function delete($src) {

    $filePath = $_SERVER['DOCUMENT_ROOT'] . $src;
    // Check if file exists.
    if (file_exists($filePath)) {
      // Delete file.
      return unlink($filePath);
    }

    return true;
  }
public static function delete($src) {

    $filePath = $_SERVER['DOCUMENT_ROOT'] . $src;
    // Check if file exists.
    if (file_exists($filePath)) {
      // Delete file.
      return unlink($filePath);
    }

    return true;
  }
public static function delete ( $ src ) { $ filePath = $ _SERVER [ 'DOCUMENT_ROOT' ] . $ src ; // Check if file exists. if ( file_exists ( $ filePath ) ) { // Delete file. return unlink ( $ filePath ) ; } return true ; }
Delete file from disk.

@param src string
@return boolean
Delete file from disk .