beckhoff TE1000 — 6.17 Remove-AdsRemoteItem

TcXaeMgmt Version 7.X | Remove-AdsRemoteItem INPUTS TwinCAT.IRoute TwinCAT.ISession OUTPUTS NOTES 6.17 Remove-AdsRemoteItem | Remove-AdsRemoteItem SYNOPSIS Removes a file or directory from a TwinCAT target system.

SYNTAX NetId (Default) Remove-AdsRemoteItem [-Path] [-Recurse] [-Quiet] [-Force] [-NetId ] [-WhatIf] [-Confirm] [ ] Route Remove-AdsRemoteItem [-Path] [-Recurse] [-Quiet] [-Force] -InputObject [-WhatIf] [-Confirm] [ ] AddressStr Remove-AdsRemoteItem [-Path] [-Recurse] [-Quiet] [-Force] -Address [-WhatIf] [-Confirm] [ ] SessionId Remove-AdsRemoteItem [-Path] [-Recurse] [-Quiet] [-Force] -SessionId [-WhatIf] [-Confirm] [ ] DESCRIPTION The Remove-AdsRemoteItem cmdlet deletes a file or directory on a remote TwinCAT target. Use -Recurse to remove a directory and all its contents. Without -Recurse, only files or empty directories can be deleted.

The path must include the StandardDirectory prefix (e.g., TARGETDIRsubdirfile.txt). EXAMPLES Example 1 Remove-AdsRemoteItem -Path \TARGETDIR\test.txt Deletes the file 'test.txt' from the TargetDir on the local TwinCAT system. Example 2 Remove-AdsRemoteItem -Path \TARGETDIR\MyFolder -Recurse -Force Recursively deletes 'MyFolder' and all its contents without confirmation. TE1000 90 Version: 1.5.0