IBM Enterprise Records, Version 5.1.2    

Deleting a record

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.

The delete method takes two parameters: asSave and asReasonForDelete. The asSave parameter is a flag that is used to check the value of isMinimumMetadataRetained. If this value is true, the system retains the minimum metadata for that record; otherwise it deletes the record and its associated metadata permanently from the system. The asReasonForDelete parameter specifies the reason for deleting the record object. Refer to the following lines of code for executing the delete method:
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)
   {
   } 
}
Attention: Only the Systems Administrator can delete a record object from IBM® Enterprise Records.


Feedback

Last updated: November 2013
ierdg013.htm

© Copyright IBM Corporation 2013