#NEWLINE# @ wsgi . action ( 'forceDelete' ) #NEWLINE# def _force_delete( self , req , id , body ) : #NEWLINE# #INDENT# 'Force delete of instance before deferred cleanup.' #NEWLINE# context = req . environ [ 'nova.context' ] #NEWLINE# authorize ( context ) #NEWLINE# instance = common . get_instance ( self . compute_api , context , id ) #NEWLINE# try : #NEWLINE# #INDENT# self . compute_api . force_delete ( context , instance ) #NEWLINE# #UNINDENT# except exception . InstanceIsLocked as e : #NEWLINE# #INDENT# raise webob . exc . HTTPConflict ( explanation = e . format_message ( ) ) #NEWLINE# #UNINDENT# return webob . Response ( status_int = 202 )