Documentation

lists.section.delete

lists.section.delete(
   params
)

The method deletes a list section. Returns true on success, otherwise returns Exception.

Parameters

Parameter Description Available from version
IBLOCK_TYPE_ID Type of information block ID (required). Possible values:
  • lists - type of list information block
  • bitrix_processes - type of process information block
  • lists_socnet - type of group list information block
IBLOCK_CODE/IBLOCK_ID Code or ID for information block (required).
SECTION_CODE/SECTION_ID Code or ID for section (required).

Example

/* lists.section.delete */
var params = {
   'IBLOCK_TYPE_ID': 'lists',
   'IBLOCK_CODE': 'rest_1',
'SECTION_CODE': 'Section_code_1'
};
BX.rest.callMethod(
   'lists.section.delete',
   params,
   function(result)
   {
       if(result.error())
           alert("Error: " + result.error());
       else
           console.log(result.data());
   }
);

© «Bitrix24», 2001-2024
Up