Delete all contents in a folder from Workfront REST API? | Community
Skip to main content
October 23, 2025
Question

Delete all contents in a folder from Workfront REST API?

  • October 23, 2025
  • 1 reply
  • 246 views

Hello, I'm trying to figure out how I can delete all of a project folder's content using the Workfront REST API. Currently with endpoint 

https://SUBDOMAIN/attask/api/v20.0/docfdr/${folderID}?force=true

using DELETE method, the default behavior is to delete the folder but keep the contents, which get moved to the project/root level. However, I'd like all contents in a folder to be deleted. I was under the impression this is what force=true would do, but it seems not to be the case. Is there a way to do this in the WF API? I've been looking around to no avail. Thanks in advance!

1 reply

SuryaLakhani
Level 4
October 24, 2025

Get a list of files in the folder, delete individual files, and then delete the folder? I know it is additional calls, but it should get the job done!

jpco26Author
October 24, 2025

Yep - that's how I've had it but was wondering if there was any native way in the folder delete request minus the extra calls. All good! Thank you 🙂