def delete_rax_cdb(args):
 print ("--- Cleaning Cloud Databases matching '%s'" % args.match_re)
 for region in pyrax.identity.services.database.regions:
  cdb = pyrax.connect_to_cloud_databases(region=region)
  for db in rax_list_iterator(cdb):
   if re.search(args.match_re, db.name):
    prompt_and_delete(db, ('Delete matching %s? [y/n]: ' % db), args.assumeyes)

def delete_rax_cdb ( args ) : print ( "--- Cleaning Cloud Databases matching '%s'" % args . match_re ) for region in pyrax . identity . services . database . regions : cdb = pyrax . connect_to_cloud_databases ( region = region ) for db in rax_list_iterator ( cdb ) : if re . search ( args . match_re , db . name ) : prompt_and_delete ( db , ( 'Delete matching %s? [y/n]: ' % db ) , args . assumeyes )
function for deleting cloud databases .