def s3_remove_last_record_id(tablename=None):
 session = current.session
 if tablename:
  if ((RCVARS in session) and (tablename in session[RCVARS])):
   del session[RCVARS][tablename]
 elif (RCVARS in session):
  del session[RCVARS]
 return True

def s3_remove_last_record_id ( tablename = None ) : session = current . session if tablename : if ( ( RCVARS in session ) and ( tablename in session [ RCVARS ] ) ) : del session [ RCVARS ] [ tablename ] elif ( RCVARS in session ) : del session [ RCVARS ] return True
clears one or all last record ids stored in a session .