public static function delete($imagePath)
    {
        $imagePath = normalizePath($imagePath);
        if (is_readable($imagePath)) {
            $original = new File($imagePath);
            static::deleteThumbnails($imagePath);
            $original->delete();
        }
    }
public static function delete($imagePath)
    {
        $imagePath = normalizePath($imagePath);
        if (is_readable($imagePath)) {
            $original = new File($imagePath);
            static::deleteThumbnails($imagePath);
            $original->delete();
        }
    }
public static function delete ( $ imagePath ) { $ imagePath = normalizePath ( $ imagePath ) ; if ( is_readable ( $ imagePath ) ) { $ original = new File ( $ imagePath ) ; static :: deleteThumbnails ( $ imagePath ) ; $ original -> delete ( ) ; } }
Deletes the given image and all its thumbnails.

@param string $imagePath Full path to image file
@return void
Deletes the given image and all its thumbnails .