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:
    delete-geo-category

  5. Select DELETE in the confirmation popup.


Deleting Categories with the API
Method:

Future<bool> Backendless.geo.deleteCategory(String categoryName);

where:

Argument                Description
categoryName name of the category to delete.

Return Value

true if the category is deleted, false otherwise.

Example

Backendless.geo.deleteCategory("mycategory").then((response) {
  print("Category has been deleted");
});