From ffe65b5b86a3e0488063e3df51cc3171fba8f54b Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 12 May 2020 04:02:06 +0200 Subject: [PATCH] [api] Add method for deleting cloud saves --- legendary/api/egs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/api/egs.py b/legendary/api/egs.py index d876659..90015da 100644 --- a/legendary/api/egs.py +++ b/legendary/api/egs.py @@ -138,3 +138,8 @@ class EPCAPI: def create_game_cloud_saves(self, app_name, filenames): return self.get_user_cloud_saves(app_name, filenames=filenames) + + def delete_game_cloud_save_file(self, path): + url = f'https://{self._datastorage_host}/api/v1/data/egstore/{path}' + r = self.session.delete(url) + r.raise_for_status()