Server.Utils.DeleteEvents

This artifact permanently deletes Event files for client or monitoring events.

NOTE: This action can not be undone! The event files are deleted permanently. Since this is a sensitive operation, typically only users with the administrator role can run it.


name: Server.Utils.DeleteEvents
description: |
  This artifact permanently deletes Event files for client or
  monitoring events.

  NOTE: This action can not be undone! The event files are deleted
  permanently. Since this is a sensitive operation, typically only
  users with the administrator role can run it.

type: SERVER

required_permissions:
  - MACHINE_STATE

parameters:
  - name: Artifact
    description: The artifact name to delete
    default:
  - name: ClientId
    description: The client id that the collection was done on
    default:
  - name: StartTime
    type: timestamp
    description: The begining time range to delete
  - name: EndTime
    type: timestamp
    description: The ending time range to delete
  - name: ReallyDoIt
    description: If you really want to delete the collection, check this.
    type: bool

sources:
  - query: |
       SELECT Type, Data.VFSPath AS VFSPath, Error
       FROM delete_events(
         artifact=Artifact, client_id=ClientId,
         start_time=StartTime, end_time=EndTime,
         really_do_it=ReallyDoIt)