Oracle Solution for Error ora-13065

Solution for Oracle Error ORA-13065

ORA-13065: cannot delete a child layer with a parent layer

What triggered the Error:

A call was made to delete a feature layer which has a dependent layer defined on it.

What should we do to fix it:

Make sure that all dependent feature layers are deleted before deleting the current feature layer.