Filter whether files imported into the Media Library from a given entry should be deleted when the entry is deleted.
add_filter( 'gpml_delete_entry_files_from_media_library', '__return_false' );
Whether the entry’s Media Library files should be deleted. Defaults to
The ID of the entry that has been deleted.
This filter is available since Gravity Forms Media Library 1.2.7.