Contents
Delete Snapshot - Plugixa Advanced User Role Editor
DELETE /plugixa-aure/v1/snapshots/{id}
Delete a restore point for good.
Needs the Edit roles permission: plugixa_aure_edit_roles.
Note. An id that does not exist is not an error: the answer is
200withdeleted: false.
Request
DELETE https://your-site.example/wp-json/plugixa-aure/v1/snapshots/41
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The restore point’s id |
Responses
200 OK.
{
"success": true,
"data": {
"deleted": true,
"snapshots": [
{
"id": 42,
"createdAt": "2026-11-12 09:30:00",
"actorId": 1,
"kind": "auto",
"label": "",
"operation": "changes.apply",
"target": "role:editor,user:12",
"size": 18342,
"actor": "Sam Carter"
}
]
}
}
| Field | Type | Meaning |
|---|---|---|
data.deleted |
boolean |
true when a point was deleted |
data.snapshots |
array |
The 50 most recent points that remain, as in List Snapshots |
Errors
Plus the errors every endpoint can return.
Examples
curl -s -X DELETE "https://your-site.example/wp-json/plugixa-aure/v1/snapshots/41" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-aure/v1/snapshots/41');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-aure/v1/snapshots/41', {
method: 'DELETE',
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share