A DMS automates document retention policies to preserve legal records for the specified time frame and archive or delete them once they are no longer required to ensure that the firm adheres to legal requirements.