Delete all mentions of the page as a special landing.syspage.deleteForLanding

We are still updating this page

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

Scope: landing

Who can execute the method: any user

The method landing.syspage.deleteForLanding deletes all mentions of the page as a special one.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'landing.syspage.deleteForLanding',
        		{
        			id: 8613 // Page ID
        		}
        	);
        	
        	const result = response.getData().result;
        	console.info(result);
        }
        catch(error)
        {
        	console.error(error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'landing.syspage.deleteForLanding',
                    [
                        'id' => 8613, // Page ID
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            if ($result->error()) {
                error_log($result->error());
                echo 'Error: ' . $result->error();
            } else {
                echo 'Info: ' . print_r($result->data(), true);
            }
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error deleting landing syspage: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'landing.syspage.deleteForLanding',
            {
                id: 8613 // Page ID
            },
            function(result)
            {
                if(result.error())
                {
                    console.error(result.error());
                }
                else
                {
                    console.info(result.data());
                }
            }
        );
        

How to Use Examples in Documentation