> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/how-to/basic-interactions/sections/delete-a-section.md).

# Delete a Section

{% tabs %}
{% tab title="cURL" %}

```bash
curl https://mburger.cloud/api/sections/<id>
-X DELETE 
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
```

{% endtab %}

{% tab title="iOS SDK" %}

```swift
MBAdmin.deleteSection(withSectionId: SECTION_ID,
                      success: {
                                
                      },
                      failure: { error in
                                
                      })
```

{% endtab %}

{% tab title="Android SDK" %}

```kotlin
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);
```

{% endtab %}

{% tab title="PHP SDK" %}

```
// Work in Progress
```

{% endtab %}

{% tab title="JS SDK" %}

```javascript
// 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?
```

{% endtab %}

{% tab title="Flutter SDK" %}

```dart
await MBAdmin.shared.deleteSection(SECTION_ID);
```

{% endtab %}
{% endtabs %}
