import http from '@/api/http'; export default (nodeId: number, allocationId: number): Promise => { return new Promise((resolve, reject) => { http.delete(`/api/application/nodes/${nodeId}/allocations/${allocationId}`) .then(() => resolve()) .catch(reject); }); };