service.delete

    This method allows to delete services.

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

    (object) Returns an object containing the IDs of the deleted services under the serviceids property.

    Deleting multiple services

    Delete two services.

    Response:

    1. "jsonrpc": "2.0",
    2. "result": {
    3. "5"
    4. ]
    5. },
    6. }

    CService::delete() in ui/include/classes/api/services/CService.php.