Created
April 29, 2022 16:49
-
-
Save janniks/825939a839102be4a3440687bc69bbcd to your computer and use it in GitHub Desktop.
deleteFile — Stacks Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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