{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/videos/:id","auth":"required","method":"delete","examples":{"codes":[{"language":"curl","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":"javascript","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();"}]},"settings":"","results":{"codes":[{"name":"","code":"","language":"json","status":204},{"name":"","code":"{ message: [Array of error messages] }","language":"json","status":400},{"status":401,"name":"Forbidden","language":"json","code":"{ \"message\": \"Access Denied\" }"},{"status":404,"language":"json","code":"{\"message\": \"Not Found\" }"},{"status":500,"language":"html","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>"}]},"params":[{"name":"id","type":"string","default":"","desc":"The video id of the video you want to delete.","required":true,"in":"path","ref":"","_id":"599b8cbb3c5bf7000f342e84"}]},"next":{"description":"","pages":[]},"title":"Deleting a Video","type":"endpoint","slug":"deleting-a-video","excerpt":"How to delete a video","body":"","updates":[],"order":5,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"599c5330e05fa5001911b3b5","project":"5669937dfc5abf2300afe7de","version":{"version":"2.0","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["59796d1140a3a2001f068cb5","59796d1140a3a2001f068cb6","59796d1140a3a2001f068cb7","59796d1140a3a2001f068cb8","5acb7bc606a2ce0003f28da4"],"_id":"59796d1140a3a2001f068cb4","project":"5669937dfc5abf2300afe7de","createdAt":"2017-07-27T04:33:21.278Z","releaseDate":"2017-07-27T04:33:21.278Z","__v":2},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Core","slug":"foo","order":1,"from_sync":false,"reference":true,"_id":"59796d1140a3a2001f068cb6","version":"59796d1140a3a2001f068cb4","project":"5669937dfc5abf2300afe7de","createdAt":"2015-12-23T15:52:27.836Z","__v":0},"user":"5928487247059a0f00169f34","createdAt":"2017-08-22T15:52:16.369Z","githubsync":"","__v":4,"parentDoc":null}

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 }}