feature(rest) delete: data is optional param
fix(rest) onDelete: if Files is empty names = p.name