diff --git a/package.json b/package.json index 03d0f8f..dbf6446 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/api", - "version": "0.0.29", + "version": "0.0.30", "description": "", "main": "mod.ts", "scripts": { diff --git a/query/query-resources/index.ts b/query/query-resources/index.ts index 76307f0..da1ed0a 100644 --- a/query/query-resources/index.ts +++ b/query/query-resources/index.ts @@ -79,6 +79,14 @@ export class QueryResources { body: formData, }); } + async deleteFile(filepath: string, opts?: DataOpts): Promise> { + const url = `${this.prefix}${filepath}`; + return adapter({ + url, + method: 'DELETE' as any, + headers: this.header(opts?.headers), + }); + } } export const getContentType = (filename: string): string => {