wp_delete_media
Delete a media item from your WordPress library. Optionally permanently remove it, bypassing the trash.
Instructions
Delete a media item
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Media ID | |
| force | No | Permanently delete (bypass trash) |