Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.

atexit

Function
Arg Description Type
query A VQL Query to parse and execute. Any (required)
env A dict of args to insert into the scope. ordereddict.Dict
timeout How long to wait for destructors to run (default 60 seconds). uint64

Description

Install a query to run when the query is unwound. This is used to clean up when the query ends.

Example

LET _ <= atexit(query={
  SELECT rm(filename="Foobar.txt") FROM scope()
})