@@ -944,6 +944,7 @@ async def _async_detach_digital_support(
944944 business_capability_guid : str ,
945945 element_guid : str ,
946946 body : Optional [dict | DeleteRelationshipRequestBody ] = None ,
947+ cascade : bool = False ,
947948 ) -> None :
948949 """Detach a business capability from digital support. Async version.
949950
@@ -964,18 +965,22 @@ async def _async_detach_digital_support(
964965 ------
965966 PyegeriaException
966967 If there are issues in communications, message format, or Egeria errors.
968+
969+ Args:
970+ cascade ():
967971 """
968972 url = (
969973 f"{ self .digital_business_command_root } /business-capabilities/"
970974 f"{ business_capability_guid } /digital-support/{ element_guid } /detach"
971975 )
972- await self ._async_make_request ( "POST" , url , self ._prepare_body (body ))
976+ await self ._async_delete_relationship_request ( url , self ._prepare_body (body ), cascade )
973977
974978 def detach_digital_support (
975979 self ,
976980 business_capability_guid : str ,
977981 element_guid : str ,
978982 body : Optional [dict | DeleteRelationshipRequestBody ] = None ,
983+ cascade : bool = False ,
979984 ) -> None :
980985 """Detach a business capability from digital support. Sync version.
981986
@@ -987,7 +992,8 @@ def detach_digital_support(
987992 The GUID of the digital support element to detach.
988993 body : dict | DeleteRelationshipRequestBody, optional
989994 Request body for deletion.
990-
995+ cascade: bool, default False
996+ If true, will perform a cascade delete.
991997 Returns
992998 -------
993999 None
@@ -996,10 +1002,11 @@ def detach_digital_support(
9961002 ------
9971003 PyegeriaException
9981004 If there are issues in communications, message format, or Egeria errors.
1005+
9991006 """
10001007 loop = asyncio .get_event_loop ()
10011008 loop .run_until_complete (
1002- self ._async_detach_digital_support (business_capability_guid , element_guid , body )
1009+ self ._async_detach_digital_support (business_capability_guid , element_guid , body , cascade )
10031010 )
10041011
10051012 #
0 commit comments