PM-CLEAN(1)
π PM-CLEAN(1) π
okay bestie, so this is pm-clean from the NCBI Entrez Direct User's Manual β one of the little helper scripts that keeps your local archive from turning into a chaotic mess. let's get into it π§Ήβ¨
β¨ NAME β¨
pm-clean β clean a local NCBI Entrez Direct archive π«§
πΈ SYNOPSIS πΈ
pm-clean -db database [-fields fields] [-]clean|[-]clear|[-]scrap|
[-]scrub|[-]scour|[-]erase|[-]zap|[-]scratch
π¦ DESCRIPTION π¦
pm-clean cleans part or all of a local NCBI Entrez Direct archive. that's it, that's the whole vibe. it's giving "girl with a broom, absolutely unbothered" π
π OPTIONS π
so like, the mode flags can be written with or without the leading dash β both forms hit the same, no cap. pick one of them though, fr fr.
-dbdatabase β the specific database you wanna clean. you gotta say which one, bestie.-fieldsfields β the Postings directories to delete while in-scratchmode; by default it's none, zero, nada. heads up: whitespace is the only delimiter, which typically means you're gonna need shell quoting. so quote it. protect your little list. π[-]clean|[-]clearβ deletes the Indices contents and the Increment files. light tidy energy β¨[-]scrapβ deletes all the Postings directories. bye bye ποΈ[-]scrubβ deletes the Indices contents, the Increment files, and all the Postings directories. deep clean moment.[-]scourβ deletes the Indices contents, the Increment files, and all Postings, Data, Archive, and Sentinel directories. okay she's going IN π€[-]eraseβ deletes the Indices contents, the Increment files, all Postings, Data, Archive, and Sentinel directories, and the Extras directory contents. full send. nothing survives π[-]zapβ deletes the entire archive. whole thing. gone. main character demolition energy β‘ please be sure, bestie.[-]scratchβ deletes the Scratch directories, plus anyPostsingsdirectories that-fieldsnamed. (yes, that's spelledPostsingsin the original, and yes, we're keeping it exactly as it is β no edits, not my business π)
ngl, the ladder goes:clean/clearβscrapβscrubβscourβeraseβzap. each rung eats more than the last.zapis the "delete the entire archive" rung. you've been warned, icon. π₯
π ENVIRONMENT π
EDIRECT_LOCAL_ARCHIVEβ the local archive directory to use; it's expected to hold an absolute path. absolute, not relative, don't test her. π«Ά
β SEE ALSO β
archive-nihocc(1), archive-nlmnlp(1), archive-nmcds(1), archive-pids(1), archive-pmc(1), archive-pubmed(1), archive-taxonomy(1), pm-prepare(1), pm-refresh(1), rchive(1) β the whole friend group, go say hi π¦
NCBI Β· 2025-05-26 Β· mwah, that's a wrap bestie, go forth and clean responsibly πβ¨π§Ήπ
π¦ where this page comes from
- debian trixie: ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 Β· PD
- ubuntu questing: ncbi-entrez-direct 24.0.20250523+dfsg-1
- ubuntu resolute: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- ubuntu stonking: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms