A gastrointestinal device and method for retrieving the device are disclosed. The device may include a stent including a plurality of strands forming first and second ends, the strands configured to move between a retrieval configuration, with substantially parallel strands, and a deployed configuration, wherein the strands form proximal and distal portions having first and second diameters larger than the pyloric sphincter. The device may include a connector assembly including proximal, middle, and distal connectors. The middle connector may be coupled to the proximal and distal connectors when the strands are in the deployed configuration. The strands may be attached to the proximal and distal connectors and the first and second ends. The device may include a release mechanism configured to decouple the proximal connector from the middle connector. Decoupling of the proximal and middle connectors may allow the strands to move from the deployed to retrieval configuration.