> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developer.staging.frame.io/platform/v2/api-reference/assets/unversion-asset/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.staging.frame.io/_mcp/server. # Unversion an Asset DELETE https://api.frame.io/v2/assets/{asset_id}/unversion Unversion an Asset from a Version Stack Reference: https://developer.staging.frame.io/platform/v2/api-reference/assets/unversion-asset ## Request ### Path parameters - `asset_id` (string, required) ## Response ### 200 Asset success response - `Asset` ## Errors ### 401 Unauthorized Error Unauthorized response - `code` (integer, optional) - `errors` (list of HttpErrorErrorsItems, optional) - `message` (string, optional) ### 404 Not Found Error Not Found response - `code` (integer, optional) - `errors` (list of HttpErrorErrorsItems, optional) - `message` (string, optional) ## Types ### Asset0 - `` (string, optional) ### HttpErrorErrorsItems - `code` (integer, optional) - `detail` (string, optional) - `status` (integer, optional) - `title` (string, optional) ## Examples **Response** ```json { "account_id": "string", "archive_from": "2024-01-15T09:30:00Z", "archive_scheduled_at": "2024-01-15T09:30:00Z", "archive_status": "string", "archived_at": "2024-01-15T09:30:00Z", "asset_type": "document", "bundle": true, "bundle_view": "string", "cover_asset_id": "string", "creator": { "digest_frequency": "string", "image_32": "string", "image_128": "string", "from_google": true, "mfa_enforced_at": "string", "email": "string", "name": "string", "image_64": "string", "timezone_value": "string", "account_id": "string", "updated_at": "string", "image_256": "string", "_type": "string", "user_hash": "string", "upload_url": "string", "profile_image": "string", "first_login_at": "string", "joined_via": "string", "id": "string", "next_digest_date": "string", "last_seen": "string", "inserted_at": "string", "roles": { "admin": true, "id": "string", "sales": true, "support": true }, "user_default_color": "string" }, "frames": 1, "hard_deleted_at": "2024-01-15T09:30:00Z", "id": "string", "index": 1.1, "is_bundle_child": true, "is_hls_required": true, "is_session_watermarked": true, "item_count": 1, "label": "string", "metadata": {}, "metadata_flags": { "id": "string", "is_360": true, "is_hdr": true, "is_original_player_compatible": true }, "name": "string", "original": "string", "parent_asset_id": "string", "project_id": "string", "properties": { "": "string" }, "required_transcodes": { "cover": true, "finalized": [ "thumb" ], "h264_1080_best": true, "h264_2160": true, "h264_360": true, "h264_540": true, "h264_720": true, "image_full": true, "image_high": true, "page_proxy": true, "thumb": true, "thumb_540": true, "thumb_orig_ar_540": true, "thumb_scrub": true }, "team_id": "string", "user_permissions": { "can_download": true, "can_modify_template": true, "can_public_share_presentation": true, "can_public_share_review_link": true, "can_share_downloadable_presentation": true, "can_share_downloadable_review_link": true, "can_share_unwatermarked_presentation": true, "can_share_unwatermarked_review_link": true }, "type": "file", "view_count": 1 } ``` **SDK Code** ```python import requests url = "https://api.frame.io/v2/assets/asset_id/unversion" response = requests.delete(url) print(response.json()) ``` ```javascript const url = 'https://api.frame.io/v2/assets/asset_id/unversion'; const options = {method: 'DELETE'}; 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" "net/http" "io" ) func main() { url := "https://api.frame.io/v2/assets/asset_id/unversion" req, _ := http.NewRequest("DELETE", url, nil) 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.frame.io/v2/assets/asset_id/unversion") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Delete.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.delete("https://api.frame.io/v2/assets/asset_id/unversion") .asString(); ``` ```php request('DELETE', 'https://api.frame.io/v2/assets/asset_id/unversion'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.frame.io/v2/assets/asset_id/unversion"); var request = new RestRequest(Method.DELETE); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v2/assets/asset_id/unversion")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" 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() ```