$files->remove()
Removes an object
$files->remove(string|Kirby\Cms\File $key): Kirby\Cms\Files
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string orKirby\Cms\File |
no default value | the name of the key |
Return type
This method does not modify the existing $files
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Files
inherited from Kirby\Cms\Collection