This will delete all archived versions of your document “your_document_name” in your case processInstanceId. Keep note that only document content is removed, not document mapping (metadata).
ofelia empowers development teams with Ofelia, the open-source and extensible platform to solve the most demanding process automation use cases. The Ofelia platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Ofelia integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.