deleteSpace method

Future<StatusResponse> deleteSpace(
  1. String path, {
  2. bool force = false,
})
inherited

Deletes a space.

By default, deletion fails if the space contains items. Set force to true to delete even if the space has contents.

Warning: Force deletion removes all items within the space.

Implementation

Future<StatusResponse> deleteSpace(
  String path, {
  bool force = false,
}) async {
  final request = DeleteSpaceRequest()
    ..path = path
    ..force = force;
  return stub.deleteSpace(request, options: callOptions);
}