MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / remove

Function remove

frontend/src/api/users.ts:45–55  ·  view source on GitHub ↗
(
  id: number,
  currentPassword: string | null = null
)

Source from the content-addressed store, hash-verified

43}
44
45export async function remove(
46 id: number,
47 currentPassword: string | null = null
48) {
49 await fetchURL(`/api/users/${id}`, {
50 method: "DELETE",
51 body: JSON.stringify({
52 ...(currentPassword != null ? { current_password: currentPassword } : {}),
53 }),
54 });
55}

Callers

nothing calls this directly

Calls 1

fetchURLFunction · 0.90

Tested by

no test coverage detected