There are two methods of deleting a RecordInfo object from a file plan in the FPOS. A RecordInfo object is either destroyed when it reaches the end of its retention period and is disposed of by the system, or the object can be manually deleted by the System Administrator using the delete operation.
In either case, you can delete a RecordInfo object, logically or physically, from an object store. When you logically delete a RecordInfo object, it is no longer visible in the user interface but continues to persist in the object store. When you physically delete a RecordInfo object, it is completely erased from the system. Only a minimum set of metadata pertaining to the RecordInfo object is retained.
You can delete a record from the file plan by calling the delete method on a RecordInfo object. However, the delete method does not apply to record objects that are placed on hold.Deleting a record that is on hold will raise RMException. For more information about placing a hold on a record object, refer to Performing operations on container objects.
void deleteRecordInfo(RecordInfo aoRecordToDelete, boolean abSave, String asReasonforDelete) { try { // Deletes the record for the reason provided. // If abSave is true, it retains the minimum metadata aoRecordToDelete.delete(abSave, asReasonforDelete); } catch(RMException aoRME) { } }