Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to delete a file

Status
Not open for further replies.

Moca04

Programmer
Dec 10, 2004
1
US
Hey All,

I'm having trouble deleting a file. The problem is given a file name, how do I retrieve its nodeVol and nodeID (basically the objInfo parameter). Any help will be greatly appreciated.

Mo
 
Can you be sure that the file name is unique ? if not, any search could turn up duplicates and any automated process could delete the wrong file.
 
I echo Greg's suggestion.But I think ListObjects is actually akin to calling
Code:
select * from dtree with a where condition
If you have the result set then it might just be case of employing your business rule for deletion such as whether the executing user has actually perms to delete.If you really wanted to do production worthy code you would enusre that you deleted versions,deleted the object,clean up hanging aliases etc.If you have time read up on the Library API and that has a whole lot of funcs for you to do




Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top