Skip to content

Kirby 3.9.8

$file->unpublish()

Remove all public versions of this file

$file->unpublish(bool $onlyMedia = false): Kirby\Cms\File

Parameters

Name Type Default
$onlyMedia bool false

Return type

Kirby\Cms\File

This method modifies the existing $file object it is applied to and returns it again.

Parent class

Kirby\Cms\File