Added delete_link and metadata_share , not working, added some debug again