galileo_sdk.sdk.missions.MissionsSdk.delete_file¶
- MissionsSdk.delete_file(mission_id, file_path)[source]¶
Delete a single file in a Mission
- Parameters
mission_id – UUID of the targeted Mission
file_path – Path to the mission file you want to delete excluding the mission root
- Returns
Bool
Example:
>>> # Delete all files in a Mission, including the results >>> my_missions = galileo.missions.list_missions() # get the UUID of the mission you want >>> UUID = my_missions[0].mission_id >>> mission_files = galileo.missions.get_mission_files(UUID) >>> for mission_file in mission_files: >>> success = galileo.missions.delete_file(UUID,os.path.join(mission_file.path,mission_file.name))