From 58d69a62d64ac21f0b22942c9628b53bae1b8385 Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Tue, 8 Sep 2020 18:29:12 +0100 Subject: [PATCH] feat(delete-context): add the ability to delete a compute context --- src/SASjs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SASjs.ts b/src/SASjs.ts index 308c42d..b901917 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -128,11 +128,11 @@ export default class SASjs { ) } - public async deleteContext(contextId: string) { + public async deleteContext(contextId: string, accessToken?: string) { if (this.sasjsConfig.serverType !== ServerType.SASViya) { throw new Error('This operation is only supported on SAS Viya servers.') } - return await this.sasViyaApiClient!.deleteContext(contextId) + return await this.sasViyaApiClient!.deleteContext(contextId, accessToken) } public async createSession(contextName: string, accessToken: string) {