Request failed with status 401 and code : OAUTH_SCOPE_MISMATCH , message : invalid oauth scope to access this URL

Request failed with status 401 and code : OAUTH_SCOPE_MISMATCH , message : invalid oauth scope to access this URL

In order to avoid the 401 issue when deleting a file in filestore, kindly update your Catalyst CLI & Node SDK to its latest version and then re login from your CLI by executing the following commands.
  1. sudo npm i -g zcatalyst-cli
  2. sudo npm i zcatalyst-sdk-node@2.2.1
  3. catalyst login --force