import React, { ReactElement } from "react"; import { useMutation } from "@tanstack/react-query"; import axios from "axios"; export const SystemSettingsForm = (): ReactElement => { const { mutate: flushDb, isLoading } = useMutation({ mutationFn: async () => { await axios({ url: `http://localhost:3000/api/library/flushDb`, method: "POST", }); }, }); return (

Flush DB and Temporary Folders

If you are encountering issues, start over using this functionality.
Flushing and resetting will clear out:

(This action is irreversible)

  1. The mongo collection that holds library metadata
  2. Your USERDATA_DIRECTORY which includes covers, temporary and expanded subfolders.
  3. Your Elasticsearch indices
Your comic book files are not touched, and your settings will remain intact.
); }; export default SystemSettingsForm;