deleteFrameworkDoctypesByNameWithHttpInfo method
Removes a DocType and every document stored under it.
Removes a DocType and every document stored under it. The definition and its data go together — a document with no schema can be neither validated nor read back — so there is no undo. Manager-only. Answers 204.
Note: This method returns the HTTP Response.
Parameters:
- String name (required): Name is the DocType's name, from the path. A name containing a space ("Sales Invoice") arrives percent-encoded and is decoded before it is matched against the stored one.
Implementation
Future<Response> deleteFrameworkDoctypesByNameWithHttpInfo(String name,) async {
// ignore: prefer_const_declarations
final path = r'/v1/framework/doctypes/{name}'
.replaceAll('{name}', name);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}