Skip to content

Instantly share code, notes, and snippets.

@janniks
Created April 29, 2022 16:49
Show Gist options
  • Save janniks/825939a839102be4a3440687bc69bbcd to your computer and use it in GitHub Desktop.
Save janniks/825939a839102be4a3440687bc69bbcd to your computer and use it in GitHub Desktop.
deleteFile — Stacks Storage
import { AppConfig, UserSession } from "@stacks/connect";
import { Storage } from "@stacks/storage";
const appConfig = new AppConfig(["store_write", "publish_data"]);
const userSession = new UserSession({ appConfig });
const storage = new Storage({ userSession });
let fileName = "car.json";
await storage.deleteFile(fileName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment