#NEWLINE# def perform_managed_resource_destroy( self , resource , force = False ) : #NEWLINE# #INDENT# if resource . backend_id : #NEWLINE# #INDENT# backend = resource . get_backend ( ) #NEWLINE# backend . destroy ( resource , force = force ) #NEWLINE# event_logger . resource . info ( '{resource_full_name} has been scheduled for deletion.' , event_type = 'resource_deletion_scheduled' , event_context = { #NEWLINE# #INDENT# 'resource' : resource , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . perform_destroy ( resource )