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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting a Profile document

Status
Not open for further replies.

MoGryph

Programmer
Nov 1, 2000
99
US
I have a database I was working on, and originally, I wanted to store some settings for some administrative things I was doing- within a Profile document. Well, I created the document, and decided afterwards, that I didn't want to use that after all. Now I don't have any clue how to DELETE the Profile document.

I can't find anything relating to an @command or any lotus script that can be used to delete Profile Document.

Anyone know how I can do it?

BTW, I'm using Version 4.6, if that's important.

Thanks
 
Hi,

Try the following code in Lotus script, the words "MainConfig" should be replace with the name of the profiledocument used when you created it.

Just but this code in an Agent or so and run it.

Good Luck.

Dim hSession As New NotesSession
Dim hDb As NotesDatabase
Dim hDoc As NotesDocument
Set hDb = hSession.CurrentDatabase
Set hDoc = hDb.GetProfileDocument("MainConfig")
Call hDoc.Remove(True)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top