# Do I need to remove credentials with withAWS?

**URL:** <https://community.jenkins.io/t/do-i-need-to-remove-credentials-with-withaws/36531>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [March 17, 2026, 3:44pm UTC](https://community.jenkins.io/t/do-i-need-to-remove-credentials-with-withaws/36531 "2026-03-17T15:44:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yojimbo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/yojimbo/32/20323_2.png) [@yojimbo](https://community.jenkins.io/u/yojimbo)\
**Post date:** [March 17, 2026, 3:44pm UTC](https://community.jenkins.io/t/do-i-need-to-remove-credentials-with-withaws/36531/1 "2026-03-17T15:44:20Z")

</div>

Jenkins setup: docker (jenkins/jenkins:2.516.3-lts)

I am new to Jenkins. In my previous tool I have to run the below to remove the AWS STS token:

```bash
rm ~/.aws/credentials

```

With the AWS plugin, I am using [withAWS]( [Pipeline: AWS Steps](https://plugins.jenkins.io/pipeline-aws/#plugin-content-withaws) ) to obtain the AWS session. Do I still need to do the cleanup step to remove the credentials? Or is it automatically done?

I searched the pipeline-aws-plugin repo and did not find any information on this

> **[GitHub - jenkinsci/pipeline-aws-plugin: Jenkins Pipeline Step Plugin for AWS](https://github.com/jenkinsci/pipeline-aws-plugin)**
>
> Jenkins Pipeline Step Plugin for AWS
