Fixed the delete command with 'before' on Swift by using the portable API for getting a container from a key