# ResourceWithContainerFiles.ClearContainerFilesSources

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [ResourceWithContainerFiles](/reference/api/go/aspire.hosting/resourcewithcontainerfiles.md)
- Version: `17.0.0`
- Kind: `method`

Removes any container files source annotation from the resource being built.

## Definition

```go
type ResourceWithContainerFiles interface {
    // ... omitted for brevity
    ClearContainerFilesSources() ResourceWithContainerFiles
}
```

## Signature

```go
ClearContainerFilesSources() ResourceWithContainerFiles
```

## Returns

[`ResourceWithContainerFiles`](/reference/api/go/aspire.hosting/resourcewithcontainerfiles.md) -- The resource builder instance with the container files source annotation applied.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [ResourceWithContainerFiles](/reference/api/go/aspire.hosting/resourcewithcontainerfiles.md) -- `interface`
