All apps you download from the App Store: both Free and Paid are displayed in your Purchase List.
Since you downloaded the 4shared app, you can also see in your Purchase List.
Is 4shared app paid?
No, the 4shared app is 100% free.
Thus, you weren't charged any money.
Does Purchase history influence my iPhone capacity?
No, it doesn't. Purchase history has nothing to do with your iPhone capacity.
But if you want to clear the Purchase List for any reason, you can do it yourself.
How do I clear my Purchase List?
It's easy to say, "Please remove app from Purchase List" in the App Store review. But reviews only convey feedback on the app or service.
App developers are not allowed to erase your purchase list.
In fact, the purchase list can only be deleted directly by the user.
Open the App Store app.
Tap the Updates icon at the bottom of the screen.
Tap Purchased at the top to view all your purchased apps.
Touch and swipe an app to the left.
Tap the red Hide button that appears.
Occasionally, no matter how many items you’re sliding the app, the Hide button does not appear.
In this case you can use iTunes:
Click Sign In, and then enter your Apple ID and password.
Click your name and select Purchased from the menu.
At the top-middle of the screen, click All. All of your purchased items appear.
Scroll to find the item that you want to hide. Hold the cursor over the item and an X appears in the upper-left corner.
Click the X, and the item hides*.
If you don't see the X sign, move the cursor to the top-left of the icon. When the cursor turns into a hand to indicate there is a link, click here [the top-left corner area] to open the dialog window.