> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete ReportSubscription

> Delete an existing ReportSubscription record by its Id.

Deletes a ReportSubscription record. Once deleted, the record is permanently removed from the system.

> [!WARNING]
>
> This action is permanent and cannot be undone. Consider updating the record instead if you want to preserve its history.

## Authentication

> [!NOTE]
>
> This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
> The authenticated user must be a full unrestricted administrator or have the **`ReportSubscription-Delete`** role.

## Path Parameters

**id** `integer` *required*

The Id of the ReportSubscription record to delete.

## Code Examples

```bash cURL theme={null}
curl -X DELETE \
  "https://spaces.nexudus.com/api/sys/reportsubscriptions/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

```javascript JavaScript theme={null}
const response = await fetch(
  'https://spaces.nexudus.com/api/sys/reportsubscriptions/87654321',
  {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  }
);

const data = await response.json();
```

```python Python theme={null}
import requests

response = requests.delete(
    'https://spaces.nexudus.com/api/sys/reportsubscriptions/87654321',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)

data = response.json()
```

## Response

### 200

**Status** `integer`

HTTP status code. `200` on success.

**Message** `string`

A human-readable message confirming the deletion.

**Value** `object`

Contains the `Id` of the deleted record.

**WasSuccessful** `boolean`

`true` if the deletion was successful.

**Errors** `array`

`null` on success.

```json Example Response theme={null}
{
  "Status": 200,
  "Message": "ReportSubscription was successfully deleted.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T12:00:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}
```

### 500

```json Example Response theme={null}
{
  "Status": 500,
  "Message": "An error occurred while deleting the record.",
  "Value": null,
  "RedirectURL": null,
  "UpdatedOn": null,
  "UpdatedBy": null,
  "Errors": null,
  "WasSuccessful": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.