Delete Projection Definition

delete
Delete a projection definition

https://api.serialized.io/projections/definitions/{projectionName}
Delete a projection definition
Request
Response
Request
Path Parameters
projectionName
required
string
The projection name
Headers
Serialized-Access-Key
required
string
Serialized access key
Serialized-Secret-Access-Key
required
string
Serialized secret key
Response
200: OK
Projection definition successfully deleted.
404: Not Found
Projection definition not found
cURL
Java
C#
Node
cURL
curl -i \
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
-X DELETE https://api.serialized.io/projections/definitions/orders
Java
import com.google.common.collect.ImmutableMap;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
Client client = ClientBuilder.newClient();
URI apiRoot = URI.create("https://api.serialized.io");
Response response = client.target(apiRoot)
.path("projections")
.path("definitions")
.path("orders")
.request()
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
.delete();
C#
using RestSharp;
using System;
var client = new RestClient("https://api.serialized.io");
var request = new RestRequest("projections/definitions/{projectionName}", Method.DELETE)
.AddUrlSegment("projectionName", "orders")
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
var response = client.Execute<Dictionary<string, Object>>(request);
Node
const axios = require("axios");
const client = axios.create({
baseURL: "https://api.serialized.io",
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
});
client.delete("projections/definitions/orders")
.then(function (response) {
// Hnadle response
})
.catch(function (error) {
// Handle error
});