delete static method

Future<String> delete(
  1. String path, {
  2. Map<String, String>? headers,
  3. dynamic body,
  4. OnSuccess? onSuccess,
  5. OnError? onError,
  6. Interceptor? interceptor,
  7. AfterEffect? afterEffect,
})

Sends an HTTP DELETE request to path with optional body.

Returns the response body as a String.

Implementation

static Future<String> delete(
  String path, {
  Map<String, String>? headers,
  dynamic body,
  OnSuccess? onSuccess,
  OnError? onError,
  Interceptor? interceptor,
  AfterEffect? afterEffect,
}) async => _request(
  'DELETE',
  path,
  headers: headers,
  body: body,
  onSuccess: onSuccess,
  onError: onError,
  interceptor: interceptor,
  afterEffect: afterEffect,
);