# delete()

If you need to delete a file or folder then this is the function that will help you do it.

```php
/**
 * @throws Throwable
 *
 * Use this to delete a file.
 */
public static function delete(string $path) : Promise;
```
