Atlantiraptor Docs

Server.Utils.DeleteClient

Type: Server

Removes one or more clients by ID from the server, deleting all associated collection data permanently.

Be careful with this one: there is no way to recover old data. However, if the client itself still exists, it will just automatically re-enroll when it next connects. You will still be able to talk to it, it is just that old collected data will be deleted.

Parameters

Name Type Default Description
ClientIdList string A list of client ids to delete.
ReallyDoIt bool If you really want to delete the client, check this.

Source

Defined in artifacts/definitions/Server/Utils/DeleteClient.yaml.

name: Server.Utils.DeleteClient
description: |
  Removes one or more clients by ID from the server, deleting all
  associated collection data permanently.

  Be careful with this one: there is no way to recover old data.
  However, if the client itself still exists, it will just
  automatically re-enroll when it next connects. You will still be
  able to talk to it, it is just that old collected data will be
  deleted.

type: SERVER

parameters:
  - name: ClientIdList
    description: A list of client ids to delete.
    default:

  - name: ReallyDoIt
    description: If you really want to delete the client, check this.
    type: bool

sources:
  - query: |
      let clients_list = SELECT ClientId
      FROM parse_records_with_regex(
          accessor="data", file=ClientIdList,
          regex="(?P<ClientId>C\\.[0-9a-z-]+)")
      WHERE log(message="Deleting client " + ClientId)

      SELECT * FROM foreach(row=clients_list,
      query={
         SELECT * FROM client_delete(client_id=ClientId,
            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.