You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example 4 starts a trim job that will delete file versions in the document library called "Documents" based on the version history limits of the document library.
Example 5 starts a trim job that will delete file versions for video and audio file types, and file versions that do not belong to a file type override in the document library based on the version history limits of the document library.
Example 6 starts a trim job that will delete file versions for video and audio file types in the document library based on the version history limits of the document library.
Example 7 starts a trim job that will delete file versions for all file types that have a version history limit override in the document library based on the version history limits of the document library.
Example 8 starts a trim job that will delete file versions for all file types that don't have a version history limit override in the document library based on the version history limits of the document library.
117
+
72
118
## PARAMETERS
73
119
74
120
### -Automatic
@@ -101,6 +147,47 @@ Accept pipeline input: False
101
147
Accept wildcard characters: False
102
148
```
103
149
150
+
### -ExcludeDefaultPolicy
151
+
Indicates whether to trim versions based on the default version history limits.
152
+
153
+
> [!NOTE]
154
+
> This feature is currently in preview and may not be available in your tenant.
155
+
156
+
```yaml
157
+
Type: SwitchParameter
158
+
Parameter Sets: ByPolicy
159
+
Aliases:
160
+
161
+
Required: False
162
+
Position: Named
163
+
Default value: None
164
+
Accept pipeline input: False
165
+
Accept wildcard characters: False
166
+
```
167
+
168
+
### -FileTypes
169
+
An array of file type names to trim versions. The supported file type names are:
170
+
171
+
- Audio
172
+
173
+
- OutlookPST
174
+
175
+
- Video
176
+
177
+
178
+
179
+
```yaml
180
+
Type: String[]
181
+
Parameter Sets: ByPolicy
182
+
Aliases:
183
+
184
+
Required: False
185
+
Position: Named
186
+
Default value: None
187
+
Accept pipeline input: False
188
+
Accept wildcard characters: False
189
+
```
190
+
104
191
### -List
105
192
106
193
The document library name or Id.
@@ -180,6 +267,23 @@ Accept pipeline input: False
180
267
Accept wildcard characters: False
181
268
```
182
269
270
+
### -TrimUseListPolicy
271
+
Indicates whether to trim versions by applying the document library's version history limits.
0 commit comments