Removing Historical Data | Database Administration | VantageCloud Lake - Removing Historical Data - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549
Historical data in TDMaps tables can take up too much space. To clean up old data and regain space, periodically run TruncateHistorySP. For example:
call tdmaps.truncatehistorysp(date '2016-01-01', :numdeletedrows);
*** Procedure has been executed.
*** Warning:  3212: The stored procedure returned one or more result sets.
 
NumDeletedRows
--------------
          35
 
*** ResultSet# 1 : 3 rows returned by "TDMAPS.TRUNCATEHISTORYSP".
 
Table           NumRowsDeleted
--------------  --------------
ActionHistory      10
LogTbl             20
AnalyzeLogTbl       5