import http from '@/api/http'; export default (uuid: string, directory: string, files: string[]): Promise => { return new Promise((resolve, reject) => { http.post(`/api/client/servers/${uuid}/files/delete`, { root: directory, files }) .then(() => resolve()) .catch(reject); }); };