Is there any way to delete costumes by code?

Hi, I'm doing experiments with pen trails adding them to costumes and when I noticed I had hundreds of costumes repeated :sweat_smile: Is there any way to delete them to start the project from the beginings.

You can use the

Untitled script pic (4)

block to delete all of the costumes, or just the ones you want.

Thanks.