### ----------------------------------------------------
### -- Collection-Plugin-Development
### -- Licenses: Artistic-2.0
### -- Authors: Richard Hainsworth, aka finanalyst
### -- File: lib/plugins/html/gather-css/cleanup.raku
### ----------------------------------------------------
use v6.d;
sub ($pr, %processed, %options --> Array ) {
    for dir(:test( *.ends-with('.css'))) {
        note "deleting $_ from gather-css" if %options<collection-info>;
        .unlink
    }
    note "deleting css-templates.raku from gather-css" if %options<collection-info>;
    "css-templates.raku".IO.unlink;
    []
}


