import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.stream.delete("<id>");
// Handle the result
console.log(result);
}
run();
Copy
Ask AI
{
"errors": [
[
"id not provided",
"Account not found"
]
]
}
Delete Stream
Delete a livestream
DELETE
/
stream
/
{id}
TypeScript
Copy
Ask AI
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.stream.delete("<id>");
// Handle the result
console.log(result);
}
run();
Copy
Ask AI
{
"errors": [
[
"id not provided",
"Account not found"
]
]
}