Skip to content

Commit b4c3650

Browse files
committed
Add delete_entity_by_guid to AtlanClient
1 parent a4f8356 commit b4c3650

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pyatlan/client/atlan.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ def purge_entity_by_guid(self, guid) -> AssetMutationResponse:
400400
)
401401
return AssetMutationResponse(**raw_json)
402402

403+
def delete_entity_by_guid(self, guid) -> AssetMutationResponse:
404+
raw_json = self._call_api(
405+
DELETE_ENTITY_BY_GUID.format_path_with_params(guid),
406+
{"deleteType": AtlanDeleteType.SOFT.value},
407+
)
408+
return AssetMutationResponse(**raw_json)
409+
403410
def search(self, criteria: IndexSearchRequest) -> SearchResults:
404411
raw_json = self._call_api(
405412
INDEX_SEARCH,

0 commit comments

Comments
 (0)