Refactored delete object, go fmt