Function : Note

NSFNoteDelete - Deletes a note from a database.
----------------------------------------------------------------------------------------------------------

#include <nsfnote.h>

STATUS LNPUBLIC NSFNoteDelete(
DBHANDLE db_handle,
NOTEID note_id,
WORD update_flags
);

Description :

This function takes a database handle, note ID, and a WORD of UPDATE_xxx flag(s) as input and deletes the specified note from the specified database. This function only supports the set of 16-bit WORD options described in the entry UPDATE_xxx; to use the extended 32-bit DWORD options, use the function NSFNoteDeleteExtended().

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 = NSFNoteDelete (db_handle, note_id, 0))
{
   NSFDbClose (db_handle);
   return (ERR(error));
}


See Also :

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