Skip to content

Kirby 5.0.2

$files->remove()

Removes an object

$files->remove(string|Kirby\Cms\File $key): Kirby\Cms\Files

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\File no default value the name of the key

Return type

Kirby\Cms\Files

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