Oracle Error LFI-00122: Can only delete a file if we create it.

Oracle Error Message

LFI-00122: Can only delete a file if we create it.

Reason for the Error

The delete file flag was specified for a file that was not created by this file operation. The ability to delete a file is not portable. As such the only deletion that is allowed by this package is if we know we want to delete the file when we create it.

Solution

You can only delete a file that you create. If you need to delete a file that you do not create then you will have to find another means of doing so.