Media deletion now checks all usage, not just posts
DELETE /v1/media/{id} already refused to delete an asset attached to a post. The in-use check now covers every place an asset can be referenced:
- posts (as before)
- channel brand kits — logo, persona photos, and style-reference images used by AI agents
- the workspace logo
- channel profile avatars
The endpoint still returns 409 Conflict when the asset is in use; the error message lists where it is referenced so you know what to detach first. Assets with no references delete exactly as before.