import { Client, Databases } from "node-appwrite";

const client = new Client()
  .setEndpoint("https://appwrite.webklar.com/v1")
  .setProject("696533bd0003952a02d4")
  .setKey("297b989f4f706df75aee7d768422021787228412c88d00d663a3dae462e09d74a8c18ae973f44c8693c1fc65c2cc0939e4887f44b08548234df464e9acaeee7392c1cf35711bc94b0aa33eec2d5dd3b0178acc3061a34dca13b23f5f94e0db4d0f80bc53fbb63f2ec3b2eb2372c1d5cfa17483e150cbfde8a7b82759334abb82");

const db = new Databases(client);

try {
  await db.delete("mail-sorter");
  console.log("Database deleted successfully");
} catch (e) {
  console.error("Error deleting database:", e.message);
}
