> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developer.staging.frame.io/platform/v4/api-reference/shares/remove-asset/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.staging.frame.io/_mcp/server. # Remove asset from share DELETE https://api.frame.io/v4/accounts/{account_id}/shares/{share_id}/assets/{asset_id} Remove an asset currently in the share from that share. Rate Limits: 10 calls per 1.00 minute(s) per account\_user Reference: https://developer.staging.frame.io/platform/api-reference/shares/remove-asset ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `account_id` (string, required) - `share_id` (string, required) - `asset_id` (string, required) ## Response ### 200 OK - `data` (RemoveAssetResponseData, required) ## Errors ### 400 Bad Request Error Bad Request - `errors` (list of BadRequestErrorsItems, required) ### 401 Unauthorized Error Unauthorized - `errors` (list of UnauthorizedErrorsItems, required) ### 403 Forbidden Error Forbidden - `errors` (list of ForbiddenErrorsItems, required) ### 404 Not Found Error Not Found - `errors` (list of NotFoundErrorsItems, required) ### 422 Unprocessable Entity Error Unprocessable Entity - `errors` (list of UnprocessableEntityErrorsItems, required) ### 429 Too Many Requests Error Too Many Requests - `errors` (list of TooManyRequestsErrorsItems, required) ## Types ### RemoveAssetResponseData - `access` (enum, required) - Allowed values: `public`, `secure` - `asset_removed` (string, required) — ID for asset added - `collection_id` (string, required) — Collection ID - `commenting_enabled` (boolean, required) - `created_at` (string, required) — Creation timestamp - `description` (string, required, nullable) — Share description - `downloading_enabled` (boolean, required) - `enabled` (boolean, required) - `expiration` (string, required, nullable) — Expiration timestamp - `id` (string, required) — Share ID - `last_viewed_at` (string, required, nullable) — Last viewed timestamp - `name` (string, required, nullable) — Share name - `short_url` (string, required, nullable) — Share URL - `updated_at` (string, required) — Update timestamp - `passphrase` (string, optional, nullable) — Passphrase to access share, if passphrase is required and not given it will be generated ### BadRequestErrorsItems - `detail` (string, required) - `source` (BadRequestErrorsItemsSource, optional) - `title` (string, optional) ### UnauthorizedErrorsItems - `detail` (string, required) - `source` (UnauthorizedErrorsItemsSource, optional) - `title` (string, optional) ### ForbiddenErrorsItems - `detail` (string, required) - `source` (ForbiddenErrorsItemsSource, optional) - `title` (string, optional) ### NotFoundErrorsItems - `detail` (string, required) - `source` (NotFoundErrorsItemsSource, optional) - `title` (string, optional) ### UnprocessableEntityErrorsItems - `detail` (string, required) - `source` (UnprocessableEntityErrorsItemsSource, optional) - `title` (string, optional) ### TooManyRequestsErrorsItems - `detail` (string, required) - `source` (TooManyRequestsErrorsItemsSource, optional) - `title` (string, optional) ### BadRequestErrorsItemsSource - `pointer` (string, optional) ### UnauthorizedErrorsItemsSource - `pointer` (string, optional) ### ForbiddenErrorsItemsSource - `pointer` (string, optional) ### NotFoundErrorsItemsSource - `pointer` (string, optional) ### UnprocessableEntityErrorsItemsSource - `pointer` (string, optional) ### TooManyRequestsErrorsItemsSource - `pointer` (string, optional) ## Examples **Response** ```json { "data": { "access": "public", "asset_removed": "257b251a-ffce-4c5c-b3e2-c3c77e1df0b9", "collection_id": "b3252929-2bd2-4b7b-9db2-7e7e8f798284", "commenting_enabled": true, "created_at": "2024-02-02T21:19:24.828948Z", "description": "Description of share", "downloading_enabled": true, "enabled": true, "expiration": "2025-10-24T22:42:23.690532Z", "id": "e92216a0-4497-4980-9f35-4c480a926139", "last_viewed_at": "2024-03-02T21:19:24.828948Z", "name": "Test Share", "short_url": "https://f.io/GGa9wPw5", "updated_at": "2024-02-02T21:19:24.828948Z", "passphrase": "as!dfj39sd(*" } } ``` **SDK Code** ```python import requests url = "https://api.frame.io/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf" headers = {"Authorization": "Bearer "} response = requests.delete(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.frame.io/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf'; const options = {method: 'DELETE', headers: {Authorization: 'Bearer '}}; 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/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("Authorization", "Bearer ") 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/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Delete.new(url) request["Authorization"] = 'Bearer ' 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/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf") .header("Authorization", "Bearer ") .asString(); ``` ```php request('DELETE', 'https://api.frame.io/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.frame.io/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf"); var request = new RestRequest(Method.DELETE); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v4/accounts/07ac8a1a-3454-44d6-9496-94d2e9117047/shares/0e439a4e-64ad-4539-8883-7cafd2270c97/assets/14bde676-82d0-4bab-ac5c-2ed77ce17bbf")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" request.allHTTPHeaderFields = headers 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() ```