Using PL/SQL, we periodically dump certain data as files to an Oracle DIRECTORY. This works 100% fine.
The problem we are facing is that using PL/SQL we need to ensure that the DIRECTORY is empty before we start dumping, and can't work out how.
Does anyone know how we might achieve this?