fix delete bucket functions