How to get deleted files in OSS bucket and SaaS cloud products

May 28, 2018

In the context of OSS bucket, the files can only be deleted by API call DELETE buckets/:bucketKey/objects/:objectName. This is a permanent deleting, so no undo and no info for deleted items. we could manage our own list when every deleting succeeds, while the files cannot be restored anymore.

If in the context of SaaS cloud products of Autodesk, the files can be deleted by end user or by API (another blog tells more). However, there is something difference between BIM 360 Docs projects and the projects of other types cloud products such as Fusion Team, A360 etc.

In the project of BIM 360 Docs, the property (attributes>>hidden) will be true after the items (file or folder) were deleted from BIM 360 Docs projects. They are NOT permanently deleted and remain hidden until they are restored. When you call GET projects/:project_id/folders/:folder_id/contents, it returns files that are not hidden. By the filter 'includeHidden=true', or 'filter[hidden]=true', it will return the files that are hidden. However, items and folders that are deleted from other types of projects are immediately permanently deleted and cannot be hidden. Before they are deleted they are tagged as hidden:false. 

This blog is rather a repeating of API help: https://developer.autodesk.com/en/docs/data/v2/overview/filtering/. check this link for more.

Posts by author

Xiaodong Liang has been with Autodesk since 2007, focusing on providing programming support, consulting, training and evangelism to external developers.