@josenavas noticed while reviewing https://github.com/biocore/qiita/pull/1068/files#r28648682 that we don't need to remove links to study_users and investigation_study table for a study to be deleted. This means that we do not have FK constrains on those tables.