---
title: "Delete or trash a resource"
method: DELETE
path: "/restapi/json/v1/resources/{resourceId}"
tags: ["Resources"]
---

# Delete or trash a resource

`DELETE /restapi/json/v1/resources/{resourceId}`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/{resourceId}`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/:resourceId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes a resource or moves it to the trash in PAM360. To move the resource to trash instead of permanently deleting it, pass `deleteType` as `trash` in the INPUT_DATA. If INPUT_DATA is omitted or `deleteType` is not specified, the resource is permanently deleted.

## Path parameters

- `resourceId` integer, required

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- object
  - `INPUT_DATA` object: Optional JSON to control delete behavior.
    - `operation` object
      - `Details` object
        - `deleteType` 'trash': Set to `trash` to move the resource to trash instead of permanently deleting it. If omitted, the resource is permanently deleted.

## Response `200`

Resource deleted or moved to trash

- OperationResponse
  - `operation` object
    - `name` string
    - `result` Result
      - `status` 'Success' | 'Failed'
      - `message` string
      - `statusCode` integer
    - `Details` object: Response payload (varies by endpoint)
    - `totalRows` integer

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
