Atlantiraptor Docs

Generic.Client.CleanupTemp

Type: Client

Removes old temporary files from the Velociraptor client’s temp directory.

Required permissions: FILESYSTEM_WRITE

Parameters

Name Type Default Description
TempGlob string %TEMP%/** Glob to find all the files in the temp folder.
AgeSeconds int 600 Any files older than this many seconds will be removed.
ReadllyDoIt bool

Source

Defined in artifacts/definitions/Generic/Client/CleanupTemp.yaml.

name: Generic.Client.CleanupTemp
description: |
  Removes old temporary files from the Velociraptor client's temp
  directory.

parameters:
  - name: TempGlob
    default: "%TEMP%/**"
    description: Glob to find all the files in the temp folder.
  - name: AgeSeconds
    default: 600
    type: int
    description: Any files older than this many seconds will be removed.
  - name: ReadllyDoIt
    type: bool

required_permissions:
  - FILESYSTEM_WRITE

sources:
  - query: |
      LET Threshold <= timestamp(epoch=now() - AgeSeconds )
      SELECT OSPath, Size, Mtime,
         if(condition=ReadllyDoIt, then=rm(filename=OSPath)) AS Removed
      FROM glob(globs=expand(path=TempGlob))
      WHERE NOT IsDir AND Mtime < Threshold

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.