Hi,

What is the correct way to delete a binary data from the database
using Java API in Orient 2.0.x?


ORecordBytes record = null;
OIdentifiable recordId = doc.field("BINARY_FILE");
if (recordId != null) {
  record = recordId.getRecord();
}
if (record != null) {
  try {
    record.delete();
  } catch (ORecordNotFoundException ex) {
    //ignore
  }
}

This does not seem to delete the record and its binary data from the
default cluster where this record is stored.

Using this command in Console deletes the record, but not the binary
data associated with it:

*truncate record #3:1*


*default.pcl* still holds the data in it because its size did not
change after truncate or delete.

Can someone help me understand the correct way to delete ORecordBytes
data from the physical data using Java API?

Thank you,
Arul

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to