// how to destroy fragment getSupportFragmentManager().beginTransaction().remove(yourFragment).commitAllowingStateLoss();