Developers can use this API to delete any unnecessary permanent asset to save space.

Notes:

  1. Use this API with caution. It can delete articles, voices, and videos created by the Official Account in Media Asset Management module on the Official Accounts Platform (it is necessary to first obtain the asset list to get the media_id).
  2. Temporary assets cannot be deleted via this API.
  3. This API must be called using the HTTPS protocol.

API Request Format

HTTP request method: POST
https://api.weixin.qq.com/cgi-bin/material/del_material?access_token=ACCESS_TOKEN

Calling Example

{
"media_id":MEDIA_ID
}

Parameters

Parameter Required Description
access_token Yes The credential for API call
media_id Yes The media_id of the asset to be obtained

Response Description

{
    "errcode":ERRCODE,
    "errmsg":ERRMSG
}

The errcode is 0 for a successful call.