Uninstall ORDS from installer:
# ords uninstall --log-folder ORDS_LOGS
If for some reason you cannot use the installer, try to remove ORDS manually:
Login sys as sysdba and type:
DROP USER ORDS_METADATA CASCADE;
DROP USER ORDS_PUBLIC_USER CASCADE;
DROP ROLEĀ ORDS_ADMINISTRATOR_ROLE;
DROP ROLE ORDS_RUNTIME_ROLE;