SOLVED

Delete empty folder

Go to solution
Rohit_Ranjan
Level 2

Hi,

I am trying to delete all the empty folders using REST API. I noticed an endpoint to fetch all the folders (Folders - Marketo Developers), how can I check if the folder/subfolders are empty?

 

Thanks,

Rohit

 

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

AFAIK there's no flag for whether a folder is empty. You have to crawl each folder for assets to determine if it's effectively empty.

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

AFAIK there's no flag for whether a folder is empty. You have to crawl each folder for assets to determine if it's effectively empty.

Rohit_Ranjan
Level 2

Thanks, is there an API that can list all the assets under a folder?

SanfordWhiteman
Level 10 - Community Moderator
All at once, no.