How to delete files in Managed Folders if Python process is running remotely?

kentnardGaleria Registered Posts: 13


I have created a managed folder through Python code whose process is running remotely and direct access to folder is not possible. I have successfully made a Python code with 'xlsxwriter' engine to create files (more than 50) and some folders inside the managed folder without problems.

Now I want to remove all existing files that are inside the managed folder. I know it is possible to do it manually in the managed folder, but deleting more than 50 folders manually is not reasonable. Additionally, I was able to get the list of files inside the folder through the module "list_paths_in_partition()", but I could not proceed in deleting them. So, how could I achieve this without knowing the path of the files? Thanks in advance.

Best regards,


Operating system used: Windows


Setup Info
      Help me…