How to delete profile doc

Hi all, I would like to know how to delete profile document. pls advice me.

with regds

soma

Subject: how to delete profile doc

this is the way to go in LotusScript:

dim session as new NotesSession

dim db as NotesDatabase

dim profile as NotesDocument

set db=session.CurrentDatabase

set profile=db.GetProfileDocument(“WhateverProfileNameYouWant” , “UserNameIfNeeded”)

call profile.Remove(true)

Greetings,

Joris

Subject: how to delete profile doc

U cant delete using @function/@command. But i think, you can use Lotus Script to delete.