---
title: "Disables periodic backup of Service Fabric service which was previously enabled."
method: POST
path: "/Services/{serviceId}/$/DisableBackup"
tags: ["BackupRestore"]
---

# Disables periodic backup of Service Fabric service which was previously enabled.

`POST /Services/{serviceId}/$/DisableBackup`

Disables periodic backup of Service Fabric service which was previously enabled. Backup must be explicitly enabled before it can be disabled.
In case the backup is enabled for the Service Fabric application, which this service is part of, this service would continue to be periodically backed up as per the policy mapped at the application level.

## Path parameters

- `serviceId` string, required

## Query parameters

- `api-version` '6.4', required
- `timeout` integer

## Request body

- DisableBackupDescription — It describes the body parameters while disabling backup of a backup entity(Application/Service/Partition).
  - `CleanBackup` boolean, required — Boolean flag to delete backups. It can be set to true for deleting all the backups which were created for the backup entity that is getting disabled for backup.

## Response `202`

A 202 status code indicates the request to disable service backup has been accepted.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
