{"_id":"599c5330e05fa5001911b3b5","project":"5669937dfc5abf2300afe7de","version":{"_id":"59796d1140a3a2001f068cb4","project":"5669937dfc5abf2300afe7de","__v":2,"createdAt":"2017-07-27T04:33:21.278Z","releaseDate":"2017-07-27T04:33:21.278Z","categories":["59796d1140a3a2001f068cb5","59796d1140a3a2001f068cb6","59796d1140a3a2001f068cb7","59796d1140a3a2001f068cb8","5acb7bc606a2ce0003f28da4"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"59796d1140a3a2001f068cb6","version":"59796d1140a3a2001f068cb4","project":"5669937dfc5abf2300afe7de","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-12-23T15:52:27.836Z","from_sync":false,"order":1,"slug":"foo","title":"Core"},"user":"5928487247059a0f00169f34","githubsync":"","__v":4,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-08-22T15:52:16.369Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"delete","examples":{"codes":[{"code":"curl \"https://s2-api.safestream.com/2.0/videos\" \\\n     -H \"x-api-key: [[app:apiKey]]\" \\\n     -H \"x-api-client-id: [[app:apiClientId]]\"","language":"curl"},{"code":"var xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === 4) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"DELETE\", \"https://safestream-api.shiftplatform.io/2.0/videos/e768d708-f0fa-4300-926f-930622d31bab\");\nxhr.setRequestHeader(\"authorization\", \"Bearer YOUR_AUTHENTICATION_TOKEN\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\n\nxhr.send();","language":"javascript"}]},"settings":"","results":{"codes":[{"status":204,"language":"json","code":"","name":""},{"status":400,"language":"json","code":"{ message: [Array of error messages] }","name":""},{"code":"{ \"message\": \"Access Denied\" }","language":"json","name":"Forbidden","status":401},{"code":"{\"message\": \"Not Found\" }","language":"json","status":404},{"code":"HTTP/1.1 500 Request failed.\nContent-Type: text/html; charset=ISO-8859-1\nCache-Control: must-revalidate,no-cache,no-store\nContent-Length: 313\nConnection: close\n\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error 500 Request failed.</title>\n</head>\n<body><h2>HTTP ERROR 500</h2>\n<p>Problem accessing /2.0/features. Reason:\n<pre>    Request failed.</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>\n\n</body>\n</html>","language":"html","status":500}]},"auth":"required","params":[{"_id":"599b8cbb3c5bf7000f342e84","ref":"","in":"path","required":true,"desc":"The video id of the video you want to delete.","default":"","type":"string","name":"id"}],"url":"/videos/:id"},"isReference":true,"order":5,"body":"","excerpt":"How to delete a video","slug":"deleting-a-video","type":"endpoint","title":"Deleting a Video"}

deleteDeleting a Video

How to delete a video

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
The video id of the video you want to delete.

Examples


User Information

Try It Out

delete
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}