Initial Release 5.0

Function : Note
NSFNoteDeleteExtended - Deletes a note from a database.
----------------------------------------------------------------------------------------------------------

#include <nsfnote.h>

STATUS LNPUBLIC NSFNoteDeleteExtended(
DBHANDLE hDB,
NOTEID NoteID,
DWORD UpdateFlags
);

Description :

This function takes a database handle, note ID, and a DWORD of UPDATE_xxx flag(s) as input and deletes the specified note from the specified database. This function allows using extended 32-bit DWORD update options, as described in the entry UPDATE_xxx.

It deletes the specified note by updating it with a nil body, and marking the note as a deletion stub. The deletion stub identifies the deleted note to other replica copies of the database. This allows the replicator to delete copies of the note from replica databases.

The deleted note may be of any NOTE_CLASS_xxx. The active user ID must have sufficient user access in the databases's Access Control List (ACL) to carry out a deletion on the note or the function will return an error code.


Parameters :

Sample Usage :


if (error = NSFNoteDeleteExtended (db_handle, note_id,
UPDATE_SHARE_SECOND))
{
   NSFDbClose (db_handle);
   return (ERR(error));
}


See Also :

NSFNoteClose
----------------------------------------------------------------------------------------------------------