Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Created July 3, 2020 17:17
// For complete examples and data files, please go to https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node
const fileName = "CalendarWorkWeeks.mpp";
const localPath = "./Data/" + fileName;
const remotePath = "Temp/Data";
const remoteFullPath = remotePath + "/" + fileName;
await tasksApi.uploadFileToStorage(remoteFullPath, localPath);
const request = new DeleteCalendarRequest();
request.name = fileName;
request.folder = remotePath;
request.calendarUid = 3;
const result = await tasksApi.deleteCalendar(request);
expect(result.response.statusCode).to.equal(200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment