<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [stripTrailingSlash](./ibm-cloud-sdk-core.striptrailingslash.md)

## stripTrailingSlash() function

Strips trailing slashes from "url", if present.

**Signature:**

```typescript
export declare function stripTrailingSlash(url: string): string;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

url


</td><td>

string


</td><td>

the url string


</td></tr>
</tbody></table>
**Returns:**

string

the url with any trailing slashes removed

