When you delete files on your iPhone, they are automatically removed from accessible locations of your storage. Some apps, such as the default photos app and Notes, have a "Recently Deleted" folder that stores these files for up to 30 days. If one of the files you deleted is from these apps, you can always recover it within the 30 days window.