Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Delete File

AI-generated

Summary

Delete a previously uploaded file from a specified channel in Stream Chat by providing the channel type, channel ID, and the file's URL.

Inputs

  • Channel Type — Type of the channel (e.g., "messaging" for 1-on-1 chats, "team" for group channels, "livestream" for broadcast channels). Defaults to "messaging".
  • Channel ID (required) — Unique identifier for the channel (e.g., "general", "random", "team-alpha"), combined with the channel type to identify the channel.
  • File URL (required) — The URL of the file to be deleted from the channel.

Output shape

a single JSON object with the result of the delete file operation as returned by Stream Chat API

Each input item will perform a delete file request. Errors for individual items are returned if Continue On Fail is enabled; otherwise, execution stops on error.

Discussion