/**
 * Delete the file at a given path.
 *
 * @return bool Returns true or false if any of them is failure.
 */
public function delete(): bool

Examples

$filesystem->file('/foo/1.txt')->delete();

Getting Started

Methods

Filesystem
File
Directory