protected static function tryDelete($path)
    {
        $success = true;

        try
        {
            if ( ! @unlink($path))
            {
                $success = false;
            }
        } catch (ErrorException $e)
        {
            $success = false;
        }

        return $success;
    }
protected static function tryDelete($path)
    {
        $success = true;

        try
        {
            if ( ! @unlink($path))
            {
                $success = false;
            }
        } catch (ErrorException $e)
        {
            $success = false;
        }

        return $success;
    }
protected static function tryDelete ( $ path ) { $ success = true ; try { if ( ! @ unlink ( $ path ) ) { $ success = false ; } } catch ( ErrorException $ e ) { $ success = false ; } return $ success ; }
Try to delete a file

@param $path
@return bool
Try to delete a file