deletePromptByName method

Future<void> deletePromptByName(
  1. String name
)

Delete removes one of the caller org's prompts and every version of it, answering 204.

Delete removes one of the caller org's prompts and every version of it, answering 204. It is scoped to the caller's org, so a name another tenant owns is the same 404 an unknown name gives. There is no undo: the version history goes with it.

Parameters:

  • String name (required): Name is the prompt to act on, from the path.

Implementation

Future<void> deletePromptByName(String name,) async {
  final response = await deletePromptByNameWithHttpInfo(name,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}