Skip to content

Kirby 3.9.8

Media::unpublish()

Deletes all versions of the given file within the parent directory

Media::unpublish(string $directory, Kirby\Cms\File $file, ?string $ignore = null): bool

Parameters

Name Type Default
$directory * string
$file * Kirby\Cms\File
$ignore string|null null

Return type

bool

Parent class

Kirby\Cms\Media