---
title: "remove(_:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlasset/remove(_:)"
---

# remove(_:)

Removes the specified object from the asset’s list of top-level objects.

## Declaration

```swift
func remove(_ object: MDLObject)
```

## Parameters

- `object`: The object to remove from the asset.

## Discussion

Discussion An asset contains one or more top-level objects (instances of the MDLObject class or one of its subclasses, such as MDLMesh), each of which may contain a hierarchy of child objects. Calling this method has no effect if the object is not in the asset’s list of top-level objects.

## See Also

### Working with Asset Content

- [object(at:)](modelio/mdlasset/object(at:).md)
- [subscript(_:)](modelio/mdlasset/subscript(_:).md)
- [count](modelio/mdlasset/count.md)
- [childObjects(of:)](modelio/mdlasset/childobjects(of:).md)
- [add(_:)](modelio/mdlasset/add(_:).md)
- [boundingBox](modelio/mdlasset/boundingbox.md)
- [boundingBox(atTime:)](modelio/mdlasset/boundingbox(attime:).md)
- [url](modelio/mdlasset/url.md)
- [bufferAllocator](modelio/mdlasset/bufferallocator.md)
- [vertexDescriptor](modelio/mdlasset/vertexdescriptor.md)
- [masters](modelio/mdlasset/masters.md)
