Skip to main content

Delete Specified Media

DELETE 

/api/v2/instance/:instanceId/media/:mediaId

Deletes the specified media file associated with a given instance. Ensure that the media has been prepared before deletion.

Request

Path Parameters

    mediaId Media IDrequired

    Id of the media that was prepared.

    instanceId stringrequired

    ID of the instance.

Responses

MediaResponse

Schema
    mediaId stringrequired
    type stringrequired
    filename stringrequired
    mimetype stringrequired
    path stringrequired
    createdAt stringrequired
    deletedAt stringrequired
    bucketBucketId stringrequired
    Message object
    messageId stringrequired
    keyId stringrequired
    keyFromMe booleanrequired
    keyRemoteJid stringrequired
    keyParticipant stringrequired
    pushName stringrequired
    contentType stringrequired
    isGroup booleanrequired
    content objectrequired
    source stringrequired
    messageTimestamp stringrequired
    createdAt date-timerequired
    deletedAt date-timerequired
    typeOfDeletion stringrequired

    Possible values: [everyone, forMe]

Loading...