Questions tagged [purge]
222 questions
255
votes
27 answers
Is there a way to purge the topic in Kafka?
I pushed a message that was too big into a kafka message topic on my local machine, now I'm getting an error:
kafka.common.InvalidMessageSizeException: invalid message size
Increasing the fetch.size is not ideal here, because I don't actually want…

Peter Klipfel
- 4,958
- 5
- 29
- 44
229
votes
8 answers
How do I purge a linux mail box with huge number of emails?
I have setup some cron jobs and they send the crons result to an email. Now over the months I have accumulated a huge number of emails.
Now my question is how can I purge all those emails from my mailbox?

anjan
- 3,147
- 6
- 26
- 31
77
votes
6 answers
How to delete or purge old files on S3?
Are there existing solutions to delete any files older than x days?

Erik
- 4,268
- 5
- 33
- 49
58
votes
12 answers
How to automatically remove all .orig files in Mercurial working tree?
During merges mercurial leaves .orig file for any unresolved file. But after manually resolving problems and marking a file correct it does not delete the .orig file. Can it be automatically removed by some command?
I work on a Mac so I can use…

rkj
- 8,787
- 2
- 29
- 35
47
votes
11 answers
Delete all files except the newest 3 in bash script
Question: How do you delete all files in a directory except the newest 3?
Finding the newest 3 files is simple:
ls -t | head -3
But I need to find all files except the newest 3 files. How do I do that, and how do I delete these files in the same…

bytecode77
- 14,163
- 30
- 110
- 141
21
votes
3 answers
How to uninstall PHP 7 completely? (Kali Linux/Debian)
On my distribution of Kali (2016.2) there was a PHP package v7.0.11 pre-installed. I'd like to use version 5.6 instead. What is the best way to remove it?
I've already tried, looking for some guides online, but PHP 7 is still pretty fresh, so there…

vane41
- 378
- 1
- 2
- 6
19
votes
3 answers
What does purge-local-repository actually purge?
I am running the following command from within a maven project directory:
mvn dependency:purge-local-repository
What is the expected behavior?
Will it delete (and re-download?) all the dependencies already existing in my local repo for that…

pkaramol
- 16,451
- 43
- 149
- 324
16
votes
1 answer
GIT - Remove old reflog entries
After a lot of rebasing a repository to our latest needs our reflog is full of commits and orphan branches. We reached the final state of our reorganization.
While there're branches and commits left with a lot of binary data the repository grew…

codekandis
- 712
- 1
- 11
- 22
16
votes
3 answers
Purging all pages in mediawiki
Is it possible to purge all pages in mediawiki? I've tried emptying the obejctcache table to no avail. I don't particularly want to hit each page with ?action=purge appended. Version 1.23.3

user3791372
- 4,445
- 6
- 44
- 78
16
votes
4 answers
Varnish purge using HTTP and REGEX
I want to purge Elements of my varnish using HTTP. This http call is triggered from a backend server behind the varnish itself, so the backend server has not other access but HTTP.
I have implemented the following purging rules with the according…

MatthiasLaug
- 2,924
- 6
- 28
- 43
15
votes
5 answers
clear buffer cache on Mac OS X
Is there a way to programatically clear the buffer cache on the Mac, preferrably in C?
Basically, I'm looking for the equivalent of the source of 10.5 (and greater)'s purge command. EDIT: I now see this is part of the CHUD tools, for which it seems…

Sophie Alpert
- 139,698
- 36
- 220
- 238
10
votes
2 answers
Removing history from git - git command fails
Im trying to purge a projects bin directory from Git history. I have already added 'bin' to .gitignore and run $git rm --cached -r bin successfully. Now I have tried using the command as recommended in the GitHub help pages to purge the history:
$…

Toby
- 9,696
- 16
- 68
- 132
9
votes
2 answers
Purge old indexes from Sonatype Nexus
We're using Sonatype's Nexus 1.9.2.2 for proxying maven repositories. Our problem is that the indexes are eating so much disk space. All our repositories are taking about 25GB space, and growing.
For example, this directory has ~4GB of index files…

infinito
- 1,985
- 1
- 15
- 16
9
votes
1 answer
Why is purgeCSS removing styles used by my React-Bootstrap app?
I am trying to purge unused styles from my app. But when purging it still removes used classes and the site looks broken.
I am using the following packages:
"dependencies": {
"@fullhuman/postcss-purgecss": "^4.0.3",
"autoprefixer":…

Mark
- 731
- 2
- 10
- 29
9
votes
1 answer
What is the use of PURGE in DROP statement of Hive?
Hi Please describe the difference between both in hive with example.

Gaurav Gangwar
- 467
- 3
- 11
- 24