clearData convenience method