Manually Deleting Old Log Data - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

You can use the Teradata SQL DELETE statement to clear outdated log data, for example, DBC.LogOnOffV log data.

The user running the SQL statement must have the DELETE privilege on the corresponding view.

For example:

You can clear DBC.LogOnOffV log data based on age. Teradata recommends retaining 90 days of log data and purging directly from the DBC.EventLog table.

DELETE FROM DBC.EventLog
WHERE (DATE-DateFld) > 90;

You can clear information for an account after a cost accounting period has closed.

DELETE FROM DBC.AMPUsageV
   WHERE Accountname = '$M619';