> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Remove Custom Attribute

## `element.removeCustomAttribute(name)`

Remove an attribute from an element.

Previously, this method removed only [custom HTML attributes](https://help.webflow.com/hc/en-us/articles/33961389460115) on an element, but now it can remove any attribute.

This method is equivalent to the [`element.removeAttribute(name)`](/designer/reference/attributes/removeAttribute) method.

### Syntax

```typescript
element.removeCustomAttribute(name: string): Promise<null>
```

### Parameters

* **`name`** :   *String* - The name of the custom attribute.

### Returns

**Promise\<`null`>**

A Promise that resolves to `null`

### Example

```typescript
// Get Selected Element
const selectedElement = await webflow.getSelectedElement()

if (selectedElement?.customAttributes) {

  // Remove Custom Attribute
  await selectedElement.removeCustomAttribute("tooltip")

}
```

### Designer Ability

| Designer Ability | Locale  | Branch | Workflow | Sitemode |
| :--------------- | :------ | :----- | :------- | :------- |
| **canDesign**    | Primary | Main   | Canvas   | Design   |