#NEWLINE# @ app . route ( '/status/<id>' , methods = [ 'DELETE' ] ) #NEWLINE# def delete_task_status( id ) : #NEWLINE# #INDENT# 'Delete an asynchronous task resource.' #NEWLINE# global background_tasks #NEWLINE# rv = background_tasks . get ( id ) #NEWLINE# if ( rv is None ) : #NEWLINE# #INDENT# return not_found ( None ) #NEWLINE# #UNINDENT# if isinstance ( rv , Thread ) : #NEWLINE# #INDENT# return bad_request ( ) #NEWLINE# #UNINDENT# del rv [ id ] #NEWLINE# return ( jsonify ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , 200 )