Delete permanent material


Delete permanent material

1474938773964532.jpg

##In new After adding permanent materials, developers can use this interface to delete permanent materials that are no longer needed to save space.

Please note:

1. Please operate this interface with caution, because it can delete graphic messages, voice, video and other materials created by public accounts in the material management module of the official website of the public platform (but You need to get the media_id of the material first by getting the material list)

2. Temporary materials cannot be deleted through this interface
3. The https protocol is required to call this interface

Interface call request instructions

http request method: POST

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


Call example

{
"media_id":MEDIA_ID
}

Parameter Description

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
media_id is the media_id of the material to be obtained

Return instructions

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

When the call is successful under normal circumstances, the errcode will be 0 .