# Delete a script module

Source: https://www.jawsdeploy.net/rest-api/script-modules-delete | Section: Script Modules

Soft-delete a script module.

`DELETE /api/script-module`

Soft-deletes the script module. Projects that imported it stop seeing it on the next deployment.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `scriptModuleId` | query | string | yes | ID of the script module. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `scriptModuleId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
DELETE /api/script-module?scriptModuleId=sm_1
```

Example response:

```
{}
```

