---
title: "delete_access_policies"
description: "Manage and delete access policies easily with modal confirmation for secure and effective access control. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/developers/ui-dev/actions/delete_access_policies"
---

# delete\_access\_policies

ID: `delete_access_policies`

This pops up a modal to ask the user if they'd like to delete the specified Access Policies. Upon confirmation, the Access Policies are deleted.

## Sample Code

```
var UI = require("ui");

var actionContext = {};
actionContext.data = [policyId1, policyId2];
UI.startAction(observableHolder, "delete_access_policies", actionContext, function(err) {

    // if something went wrong, err will contain the error
    // otherwise, success

});
```

## Configuration

The sample code sets the following `actionContext` keys:

| Key | Type | Description |
| --- | --- | --- |
| `data` | array | The Access Policies to delete (`[policyId1, policyId2]` in the sample) |
