Database Views
Delete Database Views
Soft-deletes accessible Database Views and tombstones their physical relations so they can be restored. A materialized view cannot be deleted while an active Schedule targets it.
POST
/
api
/
v1
/
databases
/
views
/
delete
Delete Database Views
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.revoengine.com/api/v1/databases/views/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/views/delete"
payload = { "data": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)⌘I
Delete Database Views
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.revoengine.com/api/v1/databases/views/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/views/delete"
payload = { "data": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
