[Graph] Support `deletedItems` APIs
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
`az ad`
When deleting objects from Microsoft Graph, they are soft-deleted. They still count against the quota
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/directory-service-limits-restrictions
> A non-admin user can create no more than 250 Azure AD resources. Both active resources and deleted resources that are available to restore count toward this quota.
There are APIs for finding deleted objects and permanently (purge) them:
- [List deletedItems (directory objects)](https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-list?view=graph-rest-1.0&tabs=http)
- [Permanently delete item](https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-delete?view=graph-rest-1.0&tabs=http)
Azure CLI should support `deletedItems` APIs.
Contributor guide
Assessment
This issue has not been assessed yet.