Skip to main content
Box Employee
May 22, 2025 10:18 AM UTC
Question

use box cli to delete folder different owner

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

    Box Employee
    May 22, 2025 10:18 AM UTC

    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

    Translate