deleteTable method
Deletes a table. For more information, see Deleting an Amazon S3 table in the Amazon Simple Storage Service User Guide.
- Permissions
-
You must have the
s3tables:DeleteTablepermission to use this operation.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter name :
The name of the table.
Parameter namespace :
The namespace associated with the table.
Parameter tableBucketARN :
The Amazon Resource Name (ARN) of the table bucket that contains the
table.
Parameter versionToken :
The version token of the table.
Implementation
Future<void> deleteTable({
required String name,
required String namespace,
required String tableBucketARN,
String? versionToken,
}) async {
final $query = <String, List<String>>{
if (versionToken != null) 'versionToken': [versionToken],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/tables/${Uri.encodeComponent(tableBucketARN)}/${Uri.encodeComponent(namespace)}/${Uri.encodeComponent(name)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}