change constructor option to shouldDeleteOnPersist