Attach and detach images from WordPress posts

WordPress saves the “Uploaded to” information when you upload an image directly into the post editor. This means that the image is attached to the post parent. 

WordPress allows you to manually detach an image from a post. This option is only available in the List view of the media library. Go to Media > Library. Click on the List view icon. Click the “Detach” link in the “Uploaded to” column to remove the relationship between an image and a post. This action will be performed immediately.

How to Disable image attachment links? 

It is possible to manually detach the link after you add an image to a post but I want to disable this functionality by default. Is there a solution to hook into the “media-upload” “pop-in” ?

On functions.php, add

update_option( ‘image_default_link_type’, ‘none’ );

How to bulk detach media files in WordPress?

………..?