added delete content in afterSave