Purge locally document and avoid pull replication

No; you’re thinking of deletion. Purges are not replicated, so if you purge a document it will not affect the server.

You can do exactly what you’re asking for by setting an expiration date on the document. After that time it will automatically be purged locally.