Hi,
I have some runs that take up 20GB of storage, but when I go to the storage managing page, I am only able to see a fraction of the weight. I would like to keep the images and metrics logged by that run and remove everything. I assume the rest of the non-displayed storage are artifacts.
I saw that artifacts can be removed using:
import wandb
api = wandb.Api()
run = api.run('mrna/NewSota/4i5o0gzh')
for artifact in run.logged_artifacts():
artifact.delete()
# artifact.delete(delete_aliases=True) # This also gives the same error
However, when I do so I get a non-descriptive error:
Traceback (most recent call last):
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/apis/normalize.py", line 41, in wrapper
return func(*args, **kwargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/apis/public.py", line 4629, in delete
self.client.execute(
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/sdk/lib/retry.py", line 212, in wrapped_fn
return retrier(*args, **kargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/sdk/lib/retry.py", line 131, in __call__
result = self._call_fn(*args, **kwargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/apis/public.py", line 252, in execute
return self._client.execute(*args, **kwargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/client.py", line 52, in execute
result = self._get_result(document, *args, **kwargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/client.py", line 60, in _get_result
return self.transport.execute(document, *args, **kwargs)
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/sdk/lib/gql_request.py", line 56, in execute
request.raise_for_status()
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.wandb.ai/graphql
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3398, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-ae6f0e9f1222>", line 6, in <cell line: 4>
artifact.delete()
File "/home/nil/miniconda3/envs/reg2/lib/python3.10/site-packages/wandb/apis/normalize.py", line 51, in wrapper
raise CommError(message, error)
wandb.errors.CommError: cannot delete system managed artifact (Error 400: Bad Request)
What does this error mean?
Alternatively, how do I remove the remaining storage associated with my jobs that is not displayed on the “storage managing” page on the browser?