---
url: "https://vueda.dev/v3/reference/api/vue/ViewDeactivate.md"
title: "ViewDeactivate"
---

# ViewDeactivate

## Overview

View that renders a confirmation form for the deactivate action via ModelActionForm, then sends
a PATCH request to the deactivate endpoint when the user confirms. It shares its body with
ViewActivate: the selected objects, the page title, the "Go Back" action, warning confirmation,
and bulk requests. Attributes and slots pass through to ModelActionForm, so a wrapping page can
adapt it, for example to a self-service account page with `confirmText`, `bannerTitle`,
`actionSuccessSummary`, and the `confirm-message` slot.

Theme entry: [ViewDeactivate](/v3/reference/theming/keys/ViewDeactivate.md)

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-themeOverride">themeOverride</span> | `Object` |  | `null` | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. |
| <span id="prop-app">app</span> | `string` | yes |  | Django app label that owns the model. |
| <span id="prop-model">model</span> | `string` | yes |  | Django model name whose instances will be deactivated. |
| <span id="prop-pk">pk</span> | `string\|array` | yes |  | Primary key or array of primary keys identifying the instances to deactivate. |
| <span id="prop-title">title</span> | `string` |  | `undefined` | Page title override. The default title is "Deactivate" followed by the model's verbose name. When `pk` lists more than one object, the default uses the verbose plural name. The default is empty until the verbose name is known, so the layout shows a skeleton. |

## Slots

### `slot` {#slot-slot}

Scoped slot.

## Source

`client/lib/views/ViewDeactivate.vue`
