Skip to main content
Question

use box cli to delete folder different owner

  • May 22, 2025
  • 1 reply
  • 13 views

Forum|alt.badge.img

I'm trying to Box cli to delete folders that haven't updated since a 1/1/2020.  Is that possible?

If not possible, I've created a report of "folder and Files" for that user.  When I use BoxCli, it cannot found the folder.  I think the boxCLI account is not the same as the owner of that folder.  That is why it cannot delete it.

1 reply

Forum|alt.badge.img

Hey Lenney, 

You are correct. The Box CLI account will be its own service account. In order to access the content, you will need to collaborate that CLI account into the folders you want to access or make API calls with the as-user header

Thanks,

Alex, Box Developer Advocate