Amazons3 remove empty method