deleteSpace method

Future<LongTask> deleteSpace(
  1. String spaceKey
)

Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted yet when this method has returned. Clients should poll the status link that is returned in the response until the task completes.

Permissions required: 'Admin' permission for the space.

Implementation

Future<LongTask> deleteSpace(String spaceKey) async {
  return LongTask.fromJson(await _client.send(
    'delete',
    'wiki/rest/api/space/{spaceKey}',
    pathParameters: {
      'spaceKey': spaceKey,
    },
  ));
}