Edit

managedDeviceCleanupRule resource type

Namespace: microsoft.graph

Important: Microsoft supports Intune /beta APIs, but they are subject to more frequent change. Microsoft recommends using version v1.0 when possible. Check an API's availability in version v1.0 using the Version selector.

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Define the rule when the admin wants the devices to be cleaned up.

Methods

Method Return Type Description
List managedDeviceCleanupRules managedDeviceCleanupRule collection List properties and relationships of the managedDeviceCleanupRule objects.
Get managedDeviceCleanupRule managedDeviceCleanupRule Read properties and relationships of the managedDeviceCleanupRule object.
Create managedDeviceCleanupRule managedDeviceCleanupRule Create a new managedDeviceCleanupRule object.
Delete managedDeviceCleanupRule None Deletes a managedDeviceCleanupRule.
Update managedDeviceCleanupRule managedDeviceCleanupRule Update the properties of a managedDeviceCleanupRule object.

Properties

Property Type Description
id String Indicates the identifier of the device cleanup rule. This id is assigned at the time when the device cleanup rule is created. Read-only.
displayName String Indicates the display name of the device cleanup rule.
description String Indicates the description for the device clean up rule.
deviceCleanupRulePlatformType deviceCleanupRulePlatformType Indicates the managed device platform for which the admin wants to create the device clean up rule. Possible values are: all, androidAOSP, androidDeviceAdministrator, androidDedicatedAndFullyManagedCorporateOwnedWorkProfile, chromeOS, androidPersonallyOwnedWorkProfile, ios, macOS, windows, windowsHolographic, unknownFutureValue, visionOS, tvOS.
lastModifiedDateTime DateTimeOffset Indicates the date and time when the device cleanup rule was last modified. This property is read-only.
deviceInactivityBeforeRetirementInDays Int32 Indicates the number of days when the device has not contacted Intune. Valid values 0 to 2147483647

Relationships

None

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.managedDeviceCleanupRule",
  "id": "String (identifier)",
  "displayName": "String",
  "description": "String",
  "deviceCleanupRulePlatformType": "String",
  "lastModifiedDateTime": "String (timestamp)",
  "deviceInactivityBeforeRetirementInDays": 1024
}