MCPcopy Create free account
hub / github.com/core7s/react-design-editor / deleteUpload

Method deleteUpload

src/services/api.ts:66–75  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

64 }
65
66 deleteUpload(id: string) {
67 return new Promise(async (resolve, reject) => {
68 try {
69 const response = await this.base.delete(`/uploads/${id}`)
70 resolve(response)
71 } catch (err) {
72 reject(err)
73 }
74 })
75 }
76
77 // TEMPLATES
78

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected