deleteContent method

  1. @deprecated
Future<void> deleteContent({
  1. required String id,
  2. String? status,
})

Deprecated, use Confluence's v2 API.

Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and status:

  • If the content's type is page,blogpost, or attachment and its status is current, it will be trashed.
  • If the content's type is page,blogpost, or attachment and its status is trashed, the content will be purged from the trash and deleted permanently. Note, you must also set the status query parameter to trashed in your request.
  • If the content's type is comment, it will be deleted permanently without being trashed.

Permissions required: 'Delete' permission for the space that the content is in.

Implementation

@deprecated
Future<void> deleteContent({required String id, String? status}) async {
  await _client.send(
    'delete',
    'wiki/rest/api/content/{id}',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (status != null) 'status': status,
    },
  );
}