---
title: "Delete scanner settings"
method: POST
path: "/api/v2/scannerSettings/delete"
tags: ["ScannerSettings"]
---

# Delete scanner settings

`POST /api/v2/scannerSettings/delete`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/scannerSettings/delete`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Delete scanner settings overrides for a scope, reverting it to inherit from its parent scope. For a repository scope, it reverts to org-wide defaults. For a partition scope, it reverts to repo-level settings. Cannot delete org-wide defaults. Organization and repository scopes keep the rules, contexts, custom sources/sinks and pattern sets assigned to them; a tag scope stops existing entirely, so records assigned to it are unassigned.

## Request body

- union
  - object
    - `scope` 'organization', required
    - `organizationId` string
  - object
    - `scope` 'tag', required
    - `organizationId` string
    - `tagId` string, required
  - object
    - `scope` 'repository', required
    - `organizationId` string
    - `repositoryId` string, required

## Response `200`

Deleted scanner settings

- ScannerSettingsDeleteResponse
  - `ok` boolean, required
  - `effective` object, required
    - `useOnlyCustomRules` boolean, nullable, required
    - `defaultFullScanReleaseTrack` 'EDGE' | 'STABLE', nullable, required
    - `defaultPrScanReleaseTrack` 'EDGE' | 'STABLE', nullable, required
    - `isPrScanningEnabled` boolean, nullable, required
    - `allowDeepSeekModels` boolean, nullable, required: Whether scanner workloads may use DeepSeek models. This setting can be read but cannot be changed on on-premises instances, where model selection is managed by the deployment administrator.
    - `highPerformanceMode` boolean, nullable, required
    - `includeVulnDetailsInPrComment` boolean, nullable, required
    - `isInlinePrReviewsEnabled` boolean, nullable, required
    - `fullScanConfidenceFilter` 'STRICT' | 'BALANCED' | 'PERMISSIVE', nullable, required
    - `isLightWeightFullScan` boolean, nullable, required: Check known vulnerability patterns with AI validation for full repository scans. Broader AI discovery and custom natural-language rules are disabled; other enabled scanners continue to run.
    - `prScanConfidenceFilter` 'STRICT' | 'BALANCED' | 'PERMISSIVE', nullable, required
    - `isPrScanIssueSummaryEnabled` boolean, nullable, required
    - `isPrScanCleanSummaryEnabled` boolean, nullable, required
    - `allowSemanticPatchImprovements` boolean, nullable, required
    - `fullScanAutoPrGeneration` boolean, nullable, required
    - `prScanAutoPatching` boolean, nullable, required
    - `postVcsCheckStatus` boolean, nullable, required
    - `runVcsChecks` boolean, nullable, required
    - `scanDraftMRs` boolean, nullable, required
    - `requireCiPipeline` boolean, nullable, required
    - `scanBotPrs` boolean, nullable, required
    - `allowPrCheckBypass` boolean, nullable, required
    - `fullScanAutoPatching` boolean, nullable, required
    - `fullScanAutoRuntimeValidation` boolean, nullable, required
    - `fullScanAutoProvisionRuntimeValidation` boolean, nullable, required
    - `prBranchFormat` string, nullable, required
    - `prCommitMessageFormat` string, nullable, required
    - `prDescriptionTemplate` string, nullable, required
    - `prTitleTemplate` string, nullable, required
    - `fullScanPrGenerationThreshold` number, nullable, required
    - `fullScanPatchThreshold` number, nullable, required
    - `prCheckFailureThreshold` number, nullable, required
    - `prResultInclusionThreshold` number, nullable, required
    - `maxPrTimeoutMinutes` number, nullable, required
    - `fullScanEnabledModules` string[], nullable, required
    - `prScanEnabledModules` string[], nullable, required
    - `scanOnFirstMeaningfulCommit` boolean, nullable, required
    - `scanOnEveryMeaningfulCommit` boolean, nullable, required
    - `sca` object, nullable, required
      - `isEnabled` boolean, nullable, required
      - `useNextGenScaEngine` boolean, nullable, required
      - `rescanCronExpression` string, nullable, required
      - `enableCVEAlerting` boolean, nullable, required
      - `autoCreateDirectPackagePRs` boolean, nullable, required
      - `directPackagePatchThreshold` number, nullable, required
      - `autoCreateTransitivePackagePRs` boolean, nullable, required
      - `transitivePackagePatchThreshold` number, nullable, required
    - `scanSchedule` object, nullable, required
      - `executionCriteriaCrontab` string, required
      - `scanBranch` string, nullable, required
    - `scanSchedules` object[], required
      - `executionCriteriaCrontab` string, required
      - `scanBranch` string, nullable, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `404`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
