system.mes.meter.deleteMeterConfigurations
Description
Deletes multiple Meter Configuration records by the given IDs.
Permissions
This method requires the METERING.WRITE.DELETE permission.
Syntax
system.mes.meter.deleteMeterConfigurations(ids)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
ids | List<String> | False | List of IDs of Meter Configurations to delete. |
Returns
If successful, an ApiResponse object is returned with the success bool set to True.
| Name | Type | Description |
|---|---|---|
success | Boolean | Indicates if the delete was successful. |
message | String | The reason why the deletion was successful or unsuccessful. |
data | String | The data associated with the deletion. |
error | String | The errors associated with the deletion. |
Code Examples
# Delete multiple Meter Configurations by ID
response = system.mes.meter.deleteMeterConfigurations([
'01J9YP3JBR-WQ8GWRR2-8Y879V2F',
'01J9YP3JBR-WQ8GWRR2-8Y879V2G'
])
print(response)