Delete permanent material
Delete permanent material
##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
http request method: POSThttps://api.weixin.qq.com/cgi-bin/material/del_material?access_token=ACCESS_TOKEN
Call example
{
"media_id":MEDIA_ID
}
Parameter Description
Parameter | Is it required | Description |
access_token | Yes | Call interface credentials |
media_id | is | the media_id of the material to be obtained |
Return instructions
{
"errcode":ERRCODE,
"errmsg":ERRMSG
}
"errcode":ERRCODE,
"errmsg":ERRMSG
}
When the call is successful under normal circumstances, the errcode will be 0 .