Skip to content

Commit 8a7a018

Browse files
authored
Merge pull request #39 from strombergdev/delete_asset (DEVREL-350)
Adds delete_asset() - satisfying DEVREL-350.
2 parents 5f12cb4 + e60bd48 commit 8a7a018

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)