Skip to content

Deleting a Geo Category

This API deletes a geo category. If the category does not exist, the service returns an error.

Removing Categories in Console

Backendless Console supports category deletion via the graphical interface. To delete a category:

  1. Login to Backendless Console
  2. Select your app/backend.
  3. Click the Geolocation icon in the menu on the left.
  4. Use the "delete" icon in the section above the list of categories:

  5. Select DELETE in the confirmation popup.

Deleting Categories with the API

- (void)deleteGeoCategoryWithCategoryName:(NSString * _Nonnull)categoryName responseHandler:^(BOOL)responseHandler errorHandler:^(Fault * _Nonnull)errorHandler;
func deleteGeoCategory(categoryName: String, responseHandler: ((Bool) -> Void)!, errorHandler: ((Fault) -> Void)!)


Argument                Description
categoryName name of the category to delete.

Return Value

Returns 1 if the category is deleted, otherwise 0.


[Backendless.shared.geo deleteGeoCategoryWithCategoryName:@"my_category_name" responseHandler:^(BOOL deleted) {
    NSLog(@"Category has been deleted: %@", deleted ? @"YES" : @"NO");
} errorHandler:^(Fault *fault) {
    NSLog(@"Error: %@", fault.message);
Backendless.shared.geo.deleteGeoCategory(categoryName: "my_category_name", responseHandler: { deleted in
    print("Category has been deleted: \(deleted)")
}, errorHandler: { fault in
    print("Error: \(fault.message ?? "")")