SOLVED

Delete empty folder

Go to solution
Rohit_Ranjan
Level 2

Delete empty folder

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

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Delete empty folder

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

Re: Delete empty folder

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

Re: Delete empty folder

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Delete empty folder

All at once, no.