@require_context
def attachment_specs_delete(context, attachment_id, key):
 session = get_session()
 with session.begin():
  _attachment_specs_get_item(context, attachment_id, key, session)
  _attachment_specs_query(context, attachment_id, session).filter_by(key=key).update({'deleted': True, 'deleted_at': timeutils.utcnow(), 'updated_at': literal_column('updated_at')})

@ require_context def attachment_specs_delete ( context , attachment_id , key ) : session = get_session ( ) with session . begin ( ) : _attachment_specs_get_item ( context , attachment_id , key , session ) _attachment_specs_query ( context , attachment_id , session ) . filter_by ( key = key ) . update ( { 'deleted' : True , 'deleted_at' : timeutils . utcnow ( ) , 'updated_at' : literal_column ( 'updated_at' ) } )
delete attachment_specs for the specified attachment record .