delete

suspend fun delete(apiPath: String, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)

Call DELETE on a target API path.

See also tryDelete, which will return null if the request fails for any reason.

Note: you should NOT prepend your path with "api/", as that will be added automatically.