Delete Files and Folders

SOTI MobiControl
Windows

As the number of files and folders grows within an organization, administrators may need to delete outdated data to maintain efficiency. Managing this task becomes more challenging with the rise of remote devices. SOTI MobiControl enables admins to automate file and folder deletion on Windows devices using scripts, ensuring seamless remote management.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Delete file

1 remove-item “filename.ext_with_path”

Delete folder

1 remove-item “foldername_with_path” -recurse

Was this helpful?

Need more help?
Ask Community