Comment on page
Delete a Section/Media
In order to delete a specific section you will need to obtain the id from the MBSection objects you will retrieve through APIs.
Then you will just have to call the static method
which will return back the section_id, with the listener
MBAdminApiDeleteSectionListenerand from the callback bundle in “action” mode using the
Deleting a media from a section is pretty similar:
media_idis the id of the media element you wish to delete, it can be used with both files and images.
This method will return back the media_id, with the listener
MBAdminApiDeleteMediaListener, and from the callback bundle in “action” mode using the
It’s suggested to maintain the
MBImagefor example) instead of simple values in order to maintain the media_id in a simpler way.