Delete a Section
curl https://mburger.cloud/api/sections/<id>
-X DELETE
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"
MBAdmin.deleteSection(withSectionId: SECTION_ID,
success: {
},
failure: { error in
})
val deleteSectionListener = object: MBAdminDeleteSectionListener{
override fun onSectionDeleteSuccess(section_id: Long) {
}
override fun onSectionDeleteError(error: String) {
}
}
MBurgerAdminTasks.deleteSection(
context = applicationContext,
section_id = SECTION_ID,
listener = deleteSectionListener);
// Work in Progress
// DELETE actions are not available atm on our JS SDK.
// If it could be interesting for you, please submit
// a feature request here:
// https://support.mburger.cloud/hc/en-us/community/topics/360000550497-Feature-Request?
await MBAdmin.shared.deleteSection(SECTION_ID);
Last updated