Delete media file
delete_media_fileMoves a file from Anki's media folder to the trash, so referenced cards show broken images or no audio. Confirm with the user before deleting files notes may use.
Instructions
Moves a file from Anki's media folder to the trash. Cards that still reference it show a broken image or play nothing. Confirm with the user before deleting a file that notes may use. Returns null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name in the media folder. |