add destroy_preferences method