# Delete particular file contents from complete history

2 messages from 2009-12-09 to 2009-12-09. Participants: Patrick Grimard, Miklos Vajna.
Thread: https://gitlist.dev/t/21919

## Patrick Grimard, 2009-12-09 18:01

Subject: Delete particular file contents from complete history
Message-ID: <9cdb17250912091001u362ce64fybe3d554304cbc445@mail.gmail.com>
URL: https://gitlist.dev/e/9cdb17250912091001u362ce64fybe3d554304cbc445%40mail.gmail.com

```
Is there some way to remove from the entire history a particular
file's content?  So for example I did an initial commit which
contained a file I didn't want in the commit and since then I've
committed further changes to the project, even started a branch to
experiment with some additional features.  I don't want to lose any of
my new commits or branch, just want to remove a particular file's
content from the entire history.

Thanks.

```

## Miklos Vajna, 2009-12-09 21:50

Subject: Re: Delete particular file contents from complete history
Message-ID: <20091209215052.GG4114@genesis.frugalware.org>
URL: https://gitlist.dev/e/20091209215052.GG4114%40genesis.frugalware.org
In-Reply-To: <9cdb17250912091001u362ce64fybe3d554304cbc445@mail.gmail.com>

```
On Wed, Dec 09, 2009 at 01:01:17PM -0500, Patrick Grimard <pgrimard@gmail.com> wrote:
> Is there some way to remove from the entire history a particular
> file's content?

Did you read man git-filter-branch? Looks like the first example does
what you need.

```
