/**
 * Empty the specified directory of all files and directories.
 *
 * @param  string $directory Directory to cleanup.
 *
 * @return bool Returns TRUE on success or FALSE on failure.
 */
public function clean(): bool

Examples

$filesystem->directory('/foo')->clean();

Getting Started

Methods

Filesystem
File
Directory