Oracle Error ORA-44733: The repository XML Index cannot be dropped directly

Oracle Error Message

ORA-44733: The repository XML Index cannot be dropped directly

Reason for the Error

DROP INDEX could not be used on the repository XML Index.

Solution

Try using DBMS_XDB_ADMIN.DROPREPOSITORYXMLINDEX.