Delete Room API v2

This commit is contained in:
Aine 2022-08-01 15:13:56 +00:00 committed by GitHub
parent 0b153ddcbb
commit 751a41d6d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@ const resourceMap = {
return json.total_rooms; return json.total_rooms;
}, },
delete: params => ({ delete: params => ({
endpoint: `/_synapse/admin/v1/rooms/${params.id}`, endpoint: `/_synapse/admin/v2/rooms/${params.id}`,
body: { block: false }, body: { purge: true },
}), }),
}, },
reports: { reports: {