How to remove a Profile Doc

How to remove a Profile Doc.

I had a profile doc, now I have used that form to create normal (keyword) document and display it in a view. But when I am creating a document it is still using the values that was in the initial profile doc.

It has to pick the value from the new Keyword doc that are created.

How can I achieve it and also how to remove profile doc.

Subject: How to remove a Profile Doc

You can only remove profile documents in script:

If you know the form name, you can use NotesDatabase.getProfileDocCollection

If you don’t know the form name, use the NotesNoteCollection object like so:

dim db as Notesdatabase

dm nnc as Notesnotecollection

Set nnc = db.CreateNoteCollection(false)

nnc.SelectProfiles = true

call nnc.BuildCollection

'// nnc will now have all the profile documents in the database.