delete method

Future<void> delete({
  1. bool force = false,
})

Deletes this space.

If force is true, deletes even if the space contains items.

await space.delete();
await space.delete(force: true);  // Delete even if not empty

Implementation

Future<void> delete({bool force = false}) async {
  await client.deleteSpace(path, force: force);
}