Delete Dataset Entries
curl --request DELETE \
--url https://api.getmaxim.ai/v1/datasets/entries \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"datasetId": "<string>",
"splitId": "<string>",
"deleteAll": true,
"columnIds": [
"<string>"
],
"entries": [
{
"rowNo": 123,
"entryId": "<string>",
"cells": [
{
"columnId": "<string>"
}
]
}
]
}
'import requests
url = "https://api.getmaxim.ai/v1/datasets/entries"
payload = {
"workspaceId": "<string>",
"datasetId": "<string>",
"splitId": "<string>",
"deleteAll": True,
"columnIds": ["<string>"],
"entries": [
{
"rowNo": 123,
"entryId": "<string>",
"cells": [{ "columnId": "<string>" }]
}
]
}
headers = {
"x-maxim-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-maxim-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '<string>',
datasetId: '<string>',
splitId: '<string>',
deleteAll: true,
columnIds: ['<string>'],
entries: [{rowNo: 123, entryId: '<string>', cells: [{columnId: '<string>'}]}]
})
};
fetch('https://api.getmaxim.ai/v1/datasets/entries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getmaxim.ai/v1/datasets/entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '<string>',
'datasetId' => '<string>',
'splitId' => '<string>',
'deleteAll' => true,
'columnIds' => [
'<string>'
],
'entries' => [
[
'rowNo' => 123,
'entryId' => '<string>',
'cells' => [
[
'columnId' => '<string>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-maxim-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmaxim.ai/v1/datasets/entries"
payload := strings.NewReader("{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-maxim-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.getmaxim.ai/v1/datasets/entries")
.header("x-maxim-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmaxim.ai/v1/datasets/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-maxim-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyDataset entry
Delete Dataset Entries
Delete dataset entries
DELETE
/
v1
/
datasets
/
entries
Delete Dataset Entries
curl --request DELETE \
--url https://api.getmaxim.ai/v1/datasets/entries \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"datasetId": "<string>",
"splitId": "<string>",
"deleteAll": true,
"columnIds": [
"<string>"
],
"entries": [
{
"rowNo": 123,
"entryId": "<string>",
"cells": [
{
"columnId": "<string>"
}
]
}
]
}
'import requests
url = "https://api.getmaxim.ai/v1/datasets/entries"
payload = {
"workspaceId": "<string>",
"datasetId": "<string>",
"splitId": "<string>",
"deleteAll": True,
"columnIds": ["<string>"],
"entries": [
{
"rowNo": 123,
"entryId": "<string>",
"cells": [{ "columnId": "<string>" }]
}
]
}
headers = {
"x-maxim-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-maxim-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '<string>',
datasetId: '<string>',
splitId: '<string>',
deleteAll: true,
columnIds: ['<string>'],
entries: [{rowNo: 123, entryId: '<string>', cells: [{columnId: '<string>'}]}]
})
};
fetch('https://api.getmaxim.ai/v1/datasets/entries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getmaxim.ai/v1/datasets/entries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '<string>',
'datasetId' => '<string>',
'splitId' => '<string>',
'deleteAll' => true,
'columnIds' => [
'<string>'
],
'entries' => [
[
'rowNo' => 123,
'entryId' => '<string>',
'cells' => [
[
'columnId' => '<string>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-maxim-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmaxim.ai/v1/datasets/entries"
payload := strings.NewReader("{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-maxim-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.getmaxim.ai/v1/datasets/entries")
.header("x-maxim-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmaxim.ai/v1/datasets/entries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-maxim-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"<string>\",\n \"datasetId\": \"<string>\",\n \"splitId\": \"<string>\",\n \"deleteAll\": true,\n \"columnIds\": [\n \"<string>\"\n ],\n \"entries\": [\n {\n \"rowNo\": 123,\n \"entryId\": \"<string>\",\n \"cells\": [\n {\n \"columnId\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
API key for authentication
Body
application/json
Unique identifier for the workspace
Unique identifier for the dataset
Unique identifier for the split
Delete all entries from the dataset
Unique identifiers for the columns to delete. All entries from this column will be deleted.
Minimum array length:
1Unique identifiers for the entries to delete. All entries from this entry will be deleted.
Minimum array length:
1Show child attributes
Show child attributes
Response
Dataset entries deleted successfully
Was this page helpful?
⌘I