deleteElement method
Implementation
Future<void> deleteElement(TId id,
{Map<String, dynamic>? params, Map<String, String?>? query}) async {
final response = await api.delete('$endpointSuffix/$id',
urlParams: params, query: query);
response.throwOnError();
}