Staples and RadioShack have removed lockers from their stores after the partnership failed to meet expectations.

The retailers began testing a system last year in which Amazon shoppers could pick up their Web delivery at a store at no extra cost. This meant customers didn’t have to be home to receive a package, or risk a delivery being stolen because it had to be dropped off on a doorstep or in a lobby.

The decision to enter a partnership that made life easier for Amazon’s customers came at a time when the online retailing giant was already a major competitor to both chains.

“That was a little bit odd, but what they were hoping for was that when customers would come in to pick up stuff from the locker, they would pick up additional items,” said Brian Yarbrough, a retail analyst with Edward Jones & Co. If they pulled the lockers, that means they probably “weren’t seeing the incremental sales out of the deal.”

Unlimited Digital Access. $1 for 4 weeks.

Staples ended the test after it “didn’t meet the criteria we set up together,” said Demos Parneros, president of North American stores and online for Staples. The company declined to comment further on why it ended the partnership or how many lockers it had in place.

RadioShack stopped the program because it didn’t fit its strategy, said spokeswoman Merianne Roth. Chief Executive Joe Magnacca, who took charge in February, is cutting items to reduce clutter in stores while improving displays to boost sales of major brands such as Apple.

Amazon spokeswoman Mary Osako didn’t respond to a request for comment.

With Amazon and other online retailers undercutting RadioShack on price and selection, sales at the electronics chain have declined in the past six quarters, leading to a net loss of more than $200 million.

Amazon has also been taking sales from Staples as it sells more office and school products. Revenue at the world’s largest office-supplies chain has slid in seven of the past eight quarters.

Staples also sells Amazon’s Kindle line of tablets and e-readers.

The fact that these chains were willing to help the customers of a major competitor “tells you it’s difficult out there and they are willing to try a lot of different things to bring people in the door,” Yarbrough said.