---
title: "Discussion on \"GIT: remove local untracked files\" | Hashnode"
description: "Discussion on \"GIT: remove local untracked files\". Sometimes you just want to get rid of all the local untracked files.\nIf you are sure of what you're doing (because there is no way to get back !  ) you can use \ngit clean\n\nTo check before , in a safe way, which files you're going to delete  ---> -n  ..."
url: "https://hashnode.com/posts/git-remove-local-untracked-files/6031aedaf51caf444856270c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [GIT: remove local untracked files](https://papidev.hashnode.dev/git-remove-local-untracked-files?utm_source=hashnode&utm_medium=feed)

Sometimes you just want to get rid of all the local untracked files. If you are sure of what you're doing (because there is no way to get back ! ) you can use git clean To check before , in a safe way, which files you're going to delete ---> -n ...

Feb 21, 2021 · 2 min read · papidev.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)

## Written by

[Luca Zanzottera](https://hashnode.com/@Zanz)

@Zanz · Italy

  
[View profile](https://hashnode.com/@Zanz)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
