Project Remove Asset
project_remove_assetRemove a costume or sound declaration from a sprite while keeping the file in assets for other sprites. Clean up sprite definitions without deleting shared resources.
Instructions
Remove a costume or sound declaration from a sprite.
Leaves the file in assets/ in case other sprites use it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | "costume" or "sound". | |
| name | Yes | The costume or sound name to remove, as reported by `project_list_assets`. | |
| path | No | Project to modify. Defaults to the active project. | |
| sprite | Yes | Sprite name, i.e. its .gs filename without the extension. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |