def user_deletemedia(mediaids, **connection_args):
 conn_args = _login(**connection_args)
 try:
  if conn_args:
   method = 'user.deletemedia'
   if (not isinstance(mediaids, list)):
    mediaids = [mediaids]
   params = mediaids
   ret = _query(method, params, conn_args['url'], conn_args['auth'])
   return ret['result']['mediaids']
  else:
   raise KeyError
 except KeyError:
  return ret

def user_deletemedia ( mediaids , ** connection_args ) : conn_args = _login ( ** connection_args ) try : if conn_args : method = 'user.deletemedia' if ( not isinstance ( mediaids , list ) ) : mediaids = [ mediaids ] params = mediaids ret = _query ( method , params , conn_args [ 'url' ] , conn_args [ 'auth' ] ) return ret [ 'result' ] [ 'mediaids' ] else : raise KeyError except KeyError : return ret
delete media by id .