http://www.perlmonks.org?node_id=879509


in reply to Deleting Directories from a path by reading information from Database columns

It is not clear what is the relationship between “HDF0009 -> 34567R” and the name of the files you need to delete. Please clarify.

  • Comment on Re: Deleting Directories from a path by reading information from Database columns

Replies are listed 'Best First'.
Re^2: Deleting Directories from a path by reading information from Database columns
by Anonymous Monk on Dec 28, 2010 at 20:39 UTC

    Hi,

    HDF0009 -> 34567R



    HDF0009->is the top level directory



    34567R -> is the sub directory in HDF0009( and this 34567R again consists of some sub directories)



    so HDF0009 may have other directories(like 12347R, 56789R...)in addition to 34567R. But here we are trying to delete 34567R because this directory contains wrong data.

      Have a look at this Node http://www.perlmonks.org/?node_id=29734

        Hi, I have an idea on how to delete the directory in Perl. But here I need to delete directories based on the data in the oracle databse.

        According to the script I posted I was able to connect to the database and pull the records I want to delete but not sure from there on how to delete them.