You can enable or disable the auditing feature by using the database.audit.Enable setting. Use the settings_write_bool procedure to enable/disable the auditing feature.
Microsoft SQL Server Example
To enable the auditing feature in Microsoft SQL Server, use the following code:
exec settings_write_bool 1,'database.audit','Enabled'