cleanup attachment file as_json