Delete the media file from a hosted item
One step with Microsoft Outlook. We can help you get access.
Get something done
Delete the media file from a hosted item
with Microsoft Outlook
Works with AI assistants
Use Microsoft Outlook: its OData Service for namespace microsoft.graph Me.team API lets you delete the media file from a hosted item in a single step (DELETE /me/joinedTeams/{team-id}/primaryChannel/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value). Microsoft Outlook also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I delete the file behind a hosted image?
- Can I remove a hosted hostedContent item's media content by ID?
Say it to your AI assistant
- Delete the media of hosted content {content} in message {message} in team {team}, primary channel.
- Remove the file behind hosted item {content} in message {message}, primary channel, team {team}.
For your developer
DELETE /me/joinedTeams/{team-id}/primaryChannel/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value in OData Service for namespace microsoft.graph Me.team API. Full spec on APIs.io.