Skip to content

Delete Hive

Description

This operation deletes a hive.

Method

[[Backendless.shared hive:(NSString *)hiveName] deleteWithResponseHandler:^(void)responseHandler errorHandler:^(Fault *)errorHandler];
Backendless.shared.hive(hiveName: String).delete(responseHandler: (() -> Void)!, errorHandler: ((Fault) -> Void)!)

where:

Argument                Description
hiveName The name of the hive to delete        . String value.

Return Value

The number of deleted store keys associated with the specified hive.

Example

The example below deletes the "groceryStore" hive.

[[Backendless.shared hive:@"groceryStore"] deleteWithResponseHandler:^{
    // handle response
} errorHandler:^(Fault *fault) {
    // handle error
}];
Backendless.shared.hive("groceryStore").delete(responseHandler: {
    // handle response
}, errorHandler: { fault in
    // handle error
})

where:

Argument                Description
"groceryStore" Name of the hive to delete.

Codeless Reference

management_api_delete_hive

where:

Argument                Description
name Name of a hive to delete.

The example below deletes the "groceryStore" hive:

management_api_example_delete_hive