$files->delete()
Deletes the files with the given IDs if they exist in the collection
$files->delete(array $ids): void
Parameters
Name | Type | Default |
---|---|---|
$idsrequired | array |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\Exception |
If not all files could be deleted |