MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / delete_from_backpack

Method delete_from_backpack

scratchattach/site/session.py:1002–1009  ·  view source on GitHub ↗

Deletes an asset from the backpack. Args: backpack_asset_id: ID of the backpack asset that will be deleted

(self, backpack_asset_id)

Source from the content-addressed store, hash-verified

1000 return commons.parse_object_list(data, backpack_asset.BackpackAsset, self)
1001
1002 def delete_from_backpack(self, backpack_asset_id) -> backpack_asset.BackpackAsset:
1003 """
1004 Deletes an asset from the backpack.
1005
1006 Args:
1007 backpack_asset_id: ID of the backpack asset that will be deleted
1008 """
1009 return backpack_asset.BackpackAsset(id=backpack_asset_id, _session=self).delete()
1010
1011 def become_scratcher_invite(self) -> dict:
1012 """

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected