> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://fastpix.com/docs/cloud-playout-api/loop-programs/delete-cloud-playout-program-items/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fastpix.com/_mcp/server. # Remove several items from a program POST https://api.fastpix.com/v1/cloud-playout/channels/{channelId}/programs/{programId}/event/delete Content-Type: application/json This endpoint removes up to 500 items from a program on a Cloud Playout loop channel in one request. Use it to clear out a block of content without making a request per item. #### How it works 1. Make a POST request to this endpoint with the IDs of the items you want to remove, which you can get from the get items in a program endpoint. 2. The request is all or nothing. If any id does not belong to the program, or any of the items cannot be removed right now, nothing is removed and the response tells you which ids were the problem. 3. Any segments marked on the removed items go with them, and the clips FastPix created for those segments are deleted from your media library. The media the items played is not affected. Repeating the same id in the list has no extra effect. On a channel that is on air, an item cannot be removed if it is already due to play in the next few minutes, and the channel must be left with at least one item to play. #### Example A broadcaster clears an entire promotional block from the morning program in one request at the end of a campaign. Reference: https://fastpix.com/docs/cloud-playout-api/loop-programs/delete-cloud-playout-program-items ## Authentication - `Authorization` header (basic auth, required) — FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request. * Username: Access Token ID * Password: Secret Key Activate your FastPix account to generate your API credentials. See the guide here ## Request ### Path parameters - `channelId` (string, required) — The unique identifier of the loop channel the program belongs to. - `programId` (string, required) — The unique identifier of the program the items are removed from. ### Body (application/json) This endpoint expects a CloudPlayoutProgramItemDeleteRequest. - `eventIds` (list of string, required) — The unique identifiers of the items to remove, as returned in the `id` field by the get items in a program endpoint. Every id must belong to the program in the path. ## Response ### 200 Items removed from the program successfully - `success` (boolean, optional) — Shows the request status. Returns true for success and false for failure. ## Examples **Request** ```json { "eventIds": [ "4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90", "7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04" ] } ``` **Response** ```json { "success": true } ``` **SDK Code** ```python import requests url = "https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete" payload = { "eventIds": ["4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90", "7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04"] } headers = { "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers, auth=("", "")) print(response.json()) ``` ```javascript const url = 'https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete'; const credentials = btoa(":"); const options = { method: 'POST', headers: { Authorization: `Basic ${credentials}`, 'Content-Type': 'application/json' }, body: '{"eventIds":["4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90","7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04"]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete" payload := strings.NewReader("{\n \"eventIds\": [\n \"4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90\",\n \"7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.SetBasicAuth("", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request.basic_auth("", "") request["Content-Type"] = 'application/json' request.body = "{\n \"eventIds\": [\n \"4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90\",\n \"7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04\"\n ]\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete") .basicAuth("", "") .header("Content-Type", "application/json") .body("{\n \"eventIds\": [\n \"4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90\",\n \"7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04\"\n ]\n}") .asString(); ``` ```php request('POST', 'https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete', [ 'body' => '{ "eventIds": [ "4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90", "7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04" ] }', 'headers' => [ 'Content-Type' => 'application/json', ], 'auth' => ['', ''], ]); echo $response->getBody(); ``` ```csharp using RestSharp; using RestSharp.Authenticators; var client = new RestClient("https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete"); client.Authenticator = new HttpBasicAuthenticator("", ""); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"eventIds\": [\n \"4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90\",\n \"7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04\"\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let credentials = Data(":".utf8).base64EncodedString() let headers = [ "Authorization": "Basic \(credentials)", "Content-Type": "application/json" ] let parameters = ["eventIds": ["4a1e1f3b-2c0d-4c4a-9a02-1d7e5f6b8c90", "7b4d9a12-5f3c-4c8e-9d21-3a7e2c5b1f04"]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.fastpix.com/v1/cloud-playout/channels/cc99cae6-56b4-46ab-9f4a-8b2462d8137c/programs/d85083a0-e935-4c29-9c32-6720bdc9b22f/event/delete")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` > The single API stack for video: upload, encode, stream, secure, and analyze video at any scale. Explore guides, API references, and SDKs.