delete or deaccession a study depending on release state