public FragmentPagerAdapter clearAdapter() {
        if (tags.isEmpty()) {
            return this;
        }

        FragmentTransaction transaction = fragmentManager.beginTransaction();
        for (String tag : tags) {
            Fragment fragment = fragmentManager.findFragmentByTag(tag);
            if (fragment != null) {
                transaction.remove(fragment);
            }
        }
        transaction.commit();
        tags.clear();

        return this;
    }
This methods clears any fragments that may not apply to the newly
selected org.

@return this adapter
app/src/main/java/com/github/pockethub/android/ui/base/FragmentPagerAdapter.java