FolderItem.Delete Not Working

Folderitem.delete is not working - get error code 104 and the file is not deleted. Is this something to do with permissions. How do I get this to work?

As FolderItem.LastErrorCode shows, code 104 means “File in use”. In use files cannot be deleted.

Thanks Paul. I found my error - did not close the input stream associated with this file before attempting to delete it (ver y dumb). How do I find the list of error code definitions?

On the FolderItem.LastErrorCode page there are some common ones, but some might also be platform-specific:

Paul, thanks again for the error code info.