How do i keep the pics on my Macbook when i delete them from my iPhone?

I recently deleted pics from my iPhone to free up space.
When i did that, all the photos were deleted from my computer too even after they were imported =(
is there any way to get them back AND what settings do i need to use to import from phone to computer then delete from my phone and not from my computer?
Best advice for free storage out there....
Have several google drives but something with a lot of space would be good.
THANKS!
You could move pictures you want to keep to a different folder on your MacBook.
If you don't backup pics to iClound, you can try to use software like EaseUS to recover the photos back. If you are referencing iCloud, then also, you have nothing to worry about. iCloud stores all the files in your iCloud but if you delete them from different devices it only deletes it from that device.

Original thread: https://forums.imore.com/threads/how-do-i-keep-the-pics-on-my-macbook-when-i-delete-them-from-my-iphone.333051/