On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

Deleted folder still shows up in query results

I have a little program that sets the ACLs on selected folders and docs.  The program keeps throwing exceptions for "objects do not exist" even though the object id looks valid.  After a little research, it turns out the object ids causing the excetion belong to a folders that hava been deleted. So, why is my query retirieveing folders that have been deleted?  I am using the "(all)" keyword in the selection query to make sure I catch all of the versioned docs.  I didn't think this had any affect on folders since they aren't versioned.  Also, does dmClean permenantly remove folder objects from the repository when it cleans up the files scheduled for removal?  If not, when are folders actually removed?  I haven't had time to check the dmClean code.