Deleting Database Information

Windows CE enables you to delete properties, records, or entire databases. To delete a property, call CeWriteRecordProps with the CEDB_PROPDELETE flag set in the wFlags parameter and a CEPROPVAL structure describing the property to delete in the rgPropVal parameter. You can delete a property with CeWriteRecordProps in any volume.

Note A record that has been deleted and then restored receives a new Windows CE object identifier.

Call the CeDeleteRecord function to delete a single record in a database. Like CeWriteRecordProps, CeDeleteRecord works on any record, regardless of the location of the record. Call the CeDeleteDatabaseEx function to delete a database in a volume. Be sure that the database is not open before you attempt to delete the database.