trim attached storage script

Change-Id: Id6003acb432ece75d22c04b358da8c38466b55d8