Function

ODRecordDelete(_:_:)

Deletes a record from a node and invalidates the record.

Declaration

func ODRecordDelete(_ record: ODRecordRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

inRecord

The record.

outError

An error reference for error details. Can be NULL.

Return Value

true if the record is successfully deleted; otherwise, false.

Discussion

After deleting the record, you should release it with the CFRelease function.

See Also

Working with Records

func ODRecordGetTypeID() -> CFTypeID

Returns the type ID for a record.

func ODRecordSynchronize(ODRecordRef!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Synchronizes a record with the directory to get current data and commit changes.