PageSourceSearch

https://instavm.io/docs/assets/js/4bbb5d16.56b11dd8.js

js instavm.io collected 2026-09-25 19:11:19 UTC 7,379 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinstavm_docs=self.webpackChunkinstavm_docs||[]).push([[7911],{7396:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>a});var t=s(4848),d=s(8453);const i={title:"Delete Snapshot",description:"Delete a snapshot (owner only).  Snapshot files are on shared S3 so any worker can handle deletion."},r="Delete Snapshot",l={id:"api/snapshots/delete-v1-snapshots-snapshot-id",title:"Delete Snapshot",description:"Delete a snapshot (owner only).  Snapshot files are on shared S3 so any worker can handle deletion.",source:"@site/docs/api/snapshots/delete-v1-snapshots-snapshot-id.md",sourceDirName:"api/snapshots",slug:"/api/snapshots/delete-v1-snapshots-snapshot-id",permalink:"/docs/api/snapshots/delete-v1-snapshots-snapshot-id",draft:!1,unlisted:!1,editUrl:"https://github.com/instavm/instavm-docs/tree/main/docs/api/snapshots/delete-v1-snapshots-snapshot-id.md",tags:[],version:"current",frontMatter:{title:"Delete Snapshot",description:"Delete a snapshot (owner only).  Snapshot files are on shared S3 so any worker can handle deletion."},sidebar:"tutorialSidebar",previous:{title:"Snapshots",permalink:"/docs/api/snapshots/"},next:{title:"Get Snapshot",permalink:"/docs/api/snapshots/get-v1-snapshots-snapshot-id"}},o={},a=[{value:"Authentication",id:"authentication",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Responses",id:"responses",level:2},{value:"200",id:"200",level:3},{value:"application/json",id:"applicationjson",level:4},{value:"422",id:"422",level:3},{value:"application/json",id:"applicationjson-1",level:4}];function c(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"delete-snapshot",children:"Delete Snapshot"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:"DELETE /v1/snapshots/{snapshot_id}\n"})}),"\n",(0,t.jsx)(n.p,{children:"Delete a snapshot (owner only)."}),"\n",(0,t.jsx)(n.p,{children:"Snapshot files are on shared S3 so any worker can handle deletion."}),"\n",(0,t.jsx)(n.h2,{id:"authentication",children:"Authentication"}),"\n",(0,t.jsxs)(n.p,{children:["Requires authentication via: ",(0,t.jsx)(n.code,{children:"OAuth2PasswordBearer"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Name"}),(0,t.jsx)(n.th,{children:"In"}),(0,t.jsx)(n.th,{children:"Type"}),(0,t.jsx)(n.th,{children:"Required"}),(0,t.jsx)(n.th,{children:"Description"}),(0,t.jsx)(n.th,{children:"Constraints"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"snapshot_id"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"path"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"string"})}),(0,t.jsx)(n.td,{children:"Yes"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"X-API-Key"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"header"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"string | null"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{children:"nullable"})]})]})]}),"\n",(0,t.jsx)(n.h2,{id:"responses",children:"Responses"}),"\n",(0,t.jsx)(n.h3,{id:"200",children:"200"}),"\n",(0,t.jsx)(n.p,{children:"Successful Response"}),"\n",(0,t.jsx)(n.h4,{id:"applicationjson",children:"application/json"}),"\n",(0,t.jsx)(n.p,{children:"Resolved schema:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:"{}\n"})}),"\n",(0,t.jsx)(n.h3,{id:"422",children:"422"}),"\n",(0,t.jsx)(n.p,{children:"Validation Error"}),"\n",(0,t.jsx)(n.h4,{id:"applicationjson-1",children:"application/json"}),"\n",(0,t.jsx)(n.p,{children:"Resolved schema:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:'{\n  "properties": {\n    "detail": {\n      "items": {\
1n        "properties": {\n          "loc": {\n            "items": {\n              "anyOf": [\n                {\n                  "type": "string"\n                },\n                {\n                  "type": "integer"\n                }\n              ]\n            },\n            "type": "array",\n            "title": "Location"\n          },\n          "msg": {\n            "type": "string",\n            "title": "Message"\n          },\n          "type": {\n            "type": "string",\n            "title": "Error Type"\n          }\n        },\n        "type": "object",\n        "required": [\n          "loc",\n          "msg",\n          "type"\n        ],\n        "title": "ValidationError"\n      },\n      "type": "array",\n      "title": "Detail"\n    }\n  },\n  "type": "object",\n  "title": "HTTPValidationError"\n}\n'})}),"\n",(0,t.jsx)(n.p,{children:"Field details:"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Field"}),(0,t.jsx)(n.th,{children:"Type"}),(0,t.jsx)(n.th,{children:"Required"}),(0,t.jsx)(n.th,{children:"Description"}),(0,t.jsx)(n.th,{children:"Constraints"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"array<object>"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail[]"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"object"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail[].loc"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"array<string | integer>"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail[].loc[]"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"string | integer"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail[].msg"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"string"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"detail[].type"})}),(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"string"})}),(0,t.jsx)(n.td,{children:"No"}),(0,t.jsx)(n.td,{}),(0,t.jsx)(n.td,{})]})]})]})]})}function h(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>l});var t=s(6540);const d={},i=t.createContext(d);function r(e){const n=t.useContext(i);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:r(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.