If iCloud Photos is enabled, deleting photos from your iPhone should also delete them from iCloud. There are ways to delete photos from iPhone but not iCloud.