[comment]: # translation:outdated

[comment]: # ({0aafdb81-0aafdb81})
# maintenance.delete

[comment]: # ({/0aafdb81-0aafdb81})

[comment]: # ({d10edf15-d10edf15})
### Description

`object maintenance.delete(array maintenanceIds)`

This method allows to delete maintenances.

[comment]: # ({/d10edf15-d10edf15})

[comment]: # ({9828d580-9828d580})
### Parameters

`(array)` IDs of the maintenances to delete.

[comment]: # ({/9828d580-9828d580})

[comment]: # ({1bb5e665-1bb5e665})
### Return values

`(object)` Returns an object containing the IDs of the deleted
maintenances under the `maintenanceids` property.

[comment]: # ({/1bb5e665-1bb5e665})

[comment]: # ({b41637d2-b41637d2})
### Examples

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({9baa4c26-9baa4c26})
#### Deleting multiple maintenances

Delete two maintenanaces.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "maintenance.delete",
    "params": [
        "3",
        "1"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "maintenanceids": [
            "3",
            "1"
        ]
    },
    "id": 1
}
```

[comment]: # ({/9baa4c26-9baa4c26})

[comment]: # ({87f95129-87f95129})
### Source

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

[comment]: # ({/87f95129-87f95129})
