Skip to content

Delete Database Log

Deletes the database log files (Data_<Database>_YYYY_MM_DD.log).

Permissions

Command KindNeeded User Kind
SystemAdmin, Sys

Parameters

NameTypeDescriptionRequiredDefaultValues
Databasearray of stringName of the database ([Database]). If empty, all database log files will be deleted.no
DatestringDate (YYYY-MM-DD) until which log files should be deleted. If 'Date' and 'Days' are not set, all log files will be deleted.no
DaysintegerNumber of days back before the log files should be deleted. If 'Date' and 'Days' are not set, all log files will be deleted. If 'Date' is set, 'Days' is not used.no

Result

No fields

Code

text
DELETE DATABASE LOG
DATABASE=[string, Multiple]
DATE=[string]
DAYS=[integer]