in/activation and delete common method