Atlantiraptor Docs

Admin.Client.Remove

Type: Server

Purges inactive clients based on a configurable age threshold.

This artifact can be used to remove clients that have not checked in for a while. All data for these clients will be removed.

The artifact enumerates all the files that are removed.

Parameters

Name Type Default Description
Age int 7 Remove clients older than this many days
ReallyDoIt bool

Source

Defined in artifacts/definitions/Admin/Client/Remove.yaml.

name: Admin.Client.Remove
description: |
  Purges inactive clients based on a configurable age threshold.

  This artifact can be used to remove clients that have not checked in
  for a while. All data for these clients will be removed.

  The artifact enumerates all the files that are removed.

type: SERVER

parameters:
  - name: Age
    description: Remove clients older than this many days
    default: "7"
    type: int

  - name: ReallyDoIt
    type: bool

sources:
  - query: |
      LET Threshold <= timestamp(epoch=now() - Age * 3600 * 24 )
      LET old_clients = SELECT os_info.fqdn AS Fqdn, client_id,
             timestamp(epoch=last_seen_at) AS LastSeen FROM clients()
      WHERE LastSeen < Threshold

      SELECT * FROM foreach(row=old_clients,
      query={
         SELECT *, Fqdn, LastSeen FROM client_delete(
             client_id=client_id, really_do_it=ReallyDoIt)
      })

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.