Adding support for remove to persistence.ts.