If your iPhone is running out of storage space, you can enable the 'Optimize Storage' feature. This will automatically remove downloaded music and videos that you haven't played in a while, freeing up space and improving performance. Go to Settings > Music (or TV) > Optimize Storage to enable this feature.