.TH PM-CLEAN 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" .SH NAME pm\-clean \- clean a local NCBI Entrez Direct archive .SH SYNOPSIS .B pm\-clean \fB\-db\fP\ \fIdatabase\fP [\|\fB\-fields\fP\ \fIfields\fP\|] [\|\fB\-\fP\|]\fBclean\fP|[\|\fB\-\fP\|]\fBclear\fP|[\|\fB\-\fP\|]\fBscrap\fP\ |\:[\|\fB\-\fP\|]\fBscrub\fP|[\|\fB\-\fP\|]\fBscour\fP\ |[\|\fB\-\fP\|]\fBerase\fP|[\|\fB\-\fP\|]\fBzap\fP|[\|\fB\-\fP\|]\fBscratch\fP .SH DESCRIPTION \fBpm\-clean\fP cleans part or all of a local NCBI Entrez Direct archive. .SH OPTIONS .TP \fB\-db\fP\ \fIdatabase\fP Specific database to clean. .TP \fB\-fields\fP\ \fIfields\fP \fBPostings\fP directories to delete in \fB\-scratch\fP mode; \fBnone\fP by default. Whitespace serves as the only delimiter, typically entailing shell quoting. .TP [\|\fB\-\fP\|]\fBclean\fP|[\|\fB\-\fP\|]\fBclear\fP Delete \fBIndices\fP contents and \fBIncrement\fP files. .TP [\|\fB\-\fP\|]\fBscrap\fP Delete all \fBPostings\fP directories. .TP [\|\fB\-\fP\|]\fBscrub\fP Delete \fBIndices\fP contents, \fBIncrement\fP files, and all \fBPostings\fP directories. .TP [\|\fB\-\fP\|]\fBscour\fP Delete \fBIndices\fP contents, \fBIncrement\fP files, and all \fBPostings\fP, \fBData\fP, \fBArchive\fP, and \fBSentinel\fP directories. .TP [\|\fB\-\fP\|]\fBerase\fP Delete \fBIndices\fP contents, \fBIncrement\fP files, all \fBPostings\fP, \fBData\fP, \fBArchive\fP, and \fBSentinel\fP directories, and \fBExtras\fP directory contents. .TP [\|\fB\-\fP\|]\fBzap\fP Delete entire archive. .TP [\|\fB\-\fP\|]\fBscratch\fP Delete \fBScratch\fP directories and any \fBPostsings\fP directories specified by \fB\-fields\fP. .SH ENVIRONMENT .TP .B EDIRECT_LOCAL_ARCHIVE Local archive directory to use; expected to hold an absolute path. .SH SEE ALSO .BR archive\-nihocc (1), .BR archive\-nlmnlp (1), .BR archive\-nmcds (1), .BR archive\-pids (1), .BR archive\-pmc (1), .BR archive\-pubmed (1), .BR archive\-taxonomy (1), .BR pm\-prepare (1), .BR pm\-refresh (1), .BR rchive (1).