Skip to content

deleteWithHeaders

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.core/FluxbaseHttpClient/deleteWithHeaders

[jvm]
suspend fun deleteWithHeaders(path: String, body: Any? = null, headers: Map<String, String> = emptyMap()): HttpResponse

DELETE that can carry a JSON body and returns response headers — used by account deletion (DELETE /api/v1/auth/account accepts an optional {password}). Mirrors fetch.delete(path, { body }) in fetch.ts.