# std::experimental::filesystem::path::clear

> C++ Atlas: `cppatlas.com/w/cpp/experimental/fs/path/clear` | Source: https://en.cppreference.com/w/cpp/experimental/fs/path/clear | Domain: Technical specifications

Clears the stored pathname. empty() is true after the call.

## Official Specification Summary (cppreference)

```cpp
void clear(); // (filesystem TS)
```

Clears the stored pathname. `empty()` is `true` after the call.

### Parameters

(none)

### Return value

(none)

### Exceptions

`noexcept` specification:

`noexcept`

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/fs/path/clear (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.