SproutCMS

This is the code documentation for the SproutCMS project

function delete()

Delete a file
If the file is an image, any resized variants (e.g. 'small', 'medium' etc.) are deleted too

Usage

bool File::delete ( string $filename );

Arguments

  1. string $filename
    The name of the file in the repository, e.g. '123_some_image.jpg'

Return value

  • bool
    True if the deletion of the main file succeeded