Remove a Metadata Item

Removes a metadata item for a folder.

Note: For more information about this command, including descriptions of any path and request parameters, request body schema, response codes and schemas, and payload examples, refer to the online API reference for this command at the following web page:

Remove a metadata item

URI

https://bartendercloud.com/api/librarian/folders/{folderId}/metadata/{key}

Note: The bartendercloud.com domain that is referenced in the URI and in the code example that follows must be replaced with the contents of the DataCenterURI claim that is extracted from your access token. For more information, refer to Extracting the DataCenterURI Claim.

Path Parameters

folderId

Type: String

Specifies the ID of the folder. Required.

key

Type: String

Specifies the key of the metadata item that you want to delete. This parameter must be single-URL encoded. Required.

Query Parameters

None.

Example

Request body: None.

Response: System.Collections.Generic.Dictionary<string, object>. This is the set of metadata that is associated with the target folder.

Copy
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}");

// Assume that folderId is the ID of the target folder. 
string keyname = System.Uri.EscapeDataString("MyCustomMetadataKey");
HttpResponseMessage msg = await client.DeleteAsync($"https://bartendercloud.com/api/librarian/folders/{folderId}/metadata/{key}"); 
if (msg.IsSuccessStatusCode)
{
    return JsonConvert.DeserializeObject<System.Collections.Generic.Dictionary<string, object>>(await msg.Content.ReadAsStringAsync());
}