Deleting Database Information

Windows CE 3.0

Windows CE can delete properties, records, or entire databases. To delete a property, call the CeWriteRecordProps function with the CEDB_PROPDELETE flag set in the wFlags parameter and a CEPROPVAL structure that describes the property to delete in the rgPropVal parameter. You can delete a property by calling 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 the CeWriteRecordProps function, CeDeleteRecord works on any record, regardless of the location of the record. Call the CeDeleteDatabaseEx function to delete a database in a volume. Ensure that the database is not open before you attempt to delete the database.