File::delete PHP Method

delete() public static method

Delete the file at a given path.
public static delete ( string | array $paths ) : boolean
$paths string | array
return boolean
        public static function delete($paths)
        {
            return \Illuminate\Filesystem\Filesystem::delete($paths);
        }

Usage Example

Example #1
0
 /**
  * Delete a file (remove it from the disk)
  *
  * @param   string  $fileName  The full path to the file
  *
  * @return  boolean  True on success
  */
 public function delete($fileName)
 {
     $ret = $this->fileAdapter->delete($fileName);
     if (!$ret && is_object($this->abstractionAdapter)) {
         return $this->abstractionAdapter->delete($fileName);
     }
     return $ret;
 }
All Usage Examples Of File::delete