Overview
Deletes all streams configured in your account. This is a bulk operation that permanently removes all stream configurations and stops all data delivery.
Key considerations:
- This action cannot be undone
- All stream configurations will be permanently deleted
- Data delivery stops immediately for all streams
- Use with extreme caution
Irreversible Action
This is an extremely destructive action that will delete ALL streams in your account. Make absolutely sure you want to remove all streams before proceeding.
Endpoint
Send a DELETE request to remove all streams.
DELETE https://api.quicknode.com/streams/rest/v1/streams
Example Request
- cURL
- JavaScript
Python
- Ruby
- SDK (JS)
SDK (Python)
- SDK (Ruby)
- SDK (Rust)
curl -X DELETE "https://api.quicknode.com/streams/rest/v1/streams" \
-H "accept: application/json" \
-H "x-api-key: YOUR_API_KEY"
const headers = new Headers()
headers.append('accept', 'application/json')
headers.append('x-api-key', 'YOUR_API_KEY')
fetch('https://api.quicknode.com/streams/rest/v1/streams', {
method: 'DELETE',
headers: headers
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error))
import requests
url = "https://api.quicknode.com/streams/rest/v1/streams"
headers = {
"accept": "application/json",
"x-api-key": "YOUR_API_KEY"
}
response = requests.delete(url, headers=headers)
print(response.json())
require "uri"
require "net/http"
url = URI("https://api.quicknode.com/streams/rest/v1/streams")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["accept"] = "application/json"
request["x-api-key"] = "YOUR_API_KEY"
response = https.request(request)
puts response.body
import { QuicknodeSdk } from "@quicknode/sdk"
const qn = new QuicknodeSdk({ apiKey: "YOUR_API_KEY" })
await qn.streams.deleteAllStreams()
console.log("All streams deleted")
import asyncio
from quicknode_sdk import QuicknodeSdk, SdkFullConfig
async def main():
qn = QuicknodeSdk(SdkFullConfig(api_key="YOUR_API_KEY"))
await qn.streams.delete_all_streams()
print("All streams deleted")
asyncio.run(main())
require "quicknode_sdk"
qn = QuicknodeSdk::SDK.from_config(api_key: "YOUR_API_KEY")
qn.streams.delete_all_streams
puts "All streams deleted"
use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let qn = QuicknodeSdk::new(&SdkFullConfig::builder().api_key("YOUR_API_KEY").build())?;
qn.streams.delete_all_streams().await?;
println!("All streams deleted");
Ok(())
}
Response
On success, the API returns a confirmation message.
{
"code": 200,
"msg": "All streams deleted successfully",
"data": null
}
Response Fields
| Field | Type | Description |
|---|---|---|
| code | number | HTTP status code (200 for success) |
| msg | string | Confirmation message |
| data | null | No additional data returned |