Delete empty folder | Community
Skip to main content
Rohit_Ranjan
New Participant
February 5, 2021
Solved

Delete empty folder

  • February 5, 2021
  • 1 reply
  • 2146 views

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.
Best answer by SanfordWhiteman

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.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 5, 2021

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
New Participant
February 5, 2021

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

SanfordWhiteman
New Participant
February 6, 2021
All at once, no.