Skip to content

Commit e60bd48

Browse files
committed
added delete_asset
1 parent 5f12cb4 commit e60bd48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

frameioclient/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,16 @@ def update_asset(self, asset_id, **kwargs):
230230
endpoint = '/assets/{}'.format(asset_id)
231231
return self._api_call('put', endpoint, kwargs)
232232

233+
def delete_asset(self, asset_id):
234+
"""
235+
Delete an asset
236+
237+
:Args:
238+
asset_id (string): the asset's id
239+
"""
240+
endpoint = '/assets/{}'.format(asset_id)
241+
return self._api_call('delete', endpoint)
242+
233243
def upload(self, asset, file):
234244
"""
235245
Upload an asset. The method will exit once the file is uploaded.

0 commit comments

Comments
 (0)