Delete empty folder | Community
Skip to main content
Rohit_Ranjan
Level 2
Feb 5, 2021 9:59 PM UTC
Solved

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Feb 5, 2021 10:24 PM UTC

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.

3 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Feb 5, 2021 10:24 PM UTC

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.

Translate
Rohit_Ranjan
Level 2
Feb 5, 2021 11:34 PM UTC

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

Translate
SanfordWhiteman
Level 10
Feb 6, 2021 1:33 AM UTC
All at once, no.
Translate