Skip to content

Ability to delete completed scans via API / CLI #100

@Tsybon

Description

@Tsybon

Currently, BBOT Server allows scans to be created, queried, and stopped — but there is no option to remove completed scans from the database.

When working with large-scale environments (hundreds/thousands of scans), storing historical data may be unnecessary or even harmful for database health. There should be a safe mechanism for removing old scan objects.

Desired functionality

Add API and CLI endpoints to:

  • Delete a single scan by ID
  • Purge multiple scans (e.g. by status FINISHED, older than X days, etc.)

Suggested syntax:

# CLI
bbctl scan delete <SCAN_ID>
bbctl scan delete --status FINISHED

# HTTP API
DELETE /v1/scans/{scan_uuid}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions