Delete the entity.section.delete storage section

We are still updating this page

Some data may be missing — we will fill it in shortly

Scope: entity

Who can execute the method: any user

The entity.section.delete method removes a storage section. The user must have at least write access (W) to the storage.

Parameters

Parameter

Description

ENTITY*
string

Required. String identifier of the storage.

ID*
integer

Required. Identifier of the section to be deleted.

Required parameters are marked with *

Examples

try
        {
        	const response = await $b24.callMethod(
        		'entity.section.delete',
        		{
        			ENTITY: 'menu_new',
        			ID: 220
        		}
        	);
        	
        	const result = response.getData().result;
        }
        catch( error )
        {
        	console.error('Error:', error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'entity.section.delete',
                    [
                        'ENTITY' => 'menu_new',
                        'ID'     => 220
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            echo 'Success: ' . print_r($result, true);
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error deleting entity section: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'entity.section.delete',
            {
                ENTITY: 'menu_new',
                ID: 220
            }
        );
        
https://my.bitrix24.com/rest/entity.section.delete.json?ENTITY=menu_new&ID=220&auth=9affe382af74d9c5caa588e28096e872
        

How to Use Examples in Documentation

Response on success

200 OK

{"result":true}