collections
Delete Collection S3 Source
Disconnect a collection’s S3 source and remove its synthetic file rows.
DELETE
/
api
/
v1
/
collections
/
{collection_id}
/
s3-source
Delete Collection S3 Source
import requests
url = "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://www.datalab.to/api/v1/collections/{collection_id}/s3-source \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/collections/{collection_id}/s3-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I
Delete Collection S3 Source
import requests
url = "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://www.datalab.to/api/v1/collections/{collection_id}/s3-source \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://www.datalab.to/api/v1/collections/{collection_id}/s3-source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}