removeMedia
Remove a media asset from a project without deleting the file on disk. First remove its timeline clips and audio tracks, or the operation is refused.
Instructions
Remove a file from the project's media. Refused while the timeline still uses it: remove its clips (removeClip) and its audio tracks (removeModifier) first. The file on disk is left alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | The asset to remove, from getCurrentDocument's assets. | |
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. |