deleteContentVersion method

Future<void> deleteContentVersion({
  1. required String id,
  2. required int versionNumber,
})

Delete a historical version. This does not delete the changes made to the content in that version, rather the changes for the deleted version are rolled up into the next version. Note, you cannot delete the current version.

Permissions required: Permission to update the content.

Implementation

Future<void> deleteContentVersion(
    {required String id, required int versionNumber}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/content/{id}/version/{versionNumber}',
    pathParameters: {
      'id': id,
      'versionNumber': '$versionNumber',
    },
  );
}