Removing files with DSC

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Arie H Arie H 3 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42432
    Profile photo of Jered Miller
    Jered Miller
    Participant

    Is anyone aware of a DSC resource module that will allow me to do a search through a directory structure and delete files with specific names and/or extensions? The builtin File resource doesn't allow wildcards in the path itself, just the file name.

    I have a script to complete this already but I was curious if I could do it through DSC instead.

    Thanks!

    #42470
    Profile photo of Arie H
    Arie H
    Participant

    Nothing built in or nothing I seen on GitHub, but you can use the Script Resource that's built-in to run a script you already have.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.