2019-08-04 22:46:58 +00:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
2020-07-11 22:37:59 +00:00
|
|
|
export default (uuid: string, directory: string, files: string[]): Promise<void> => {
|
2019-08-04 22:46:58 +00:00
|
|
|
return new Promise((resolve, reject) => {
|
2020-07-11 22:37:59 +00:00
|
|
|
http.post(`/api/client/servers/${uuid}/files/delete`, { root: directory, files })
|
2019-08-04 22:46:58 +00:00
|
|
|
.then(() => resolve())
|
|
|
|
.catch(reject);
|
|
|
|
});
|
|
|
|
};
|