If you will delete a shared Google Docs file then it won’t be deleted for the person who has shared the file with you. If the owner of the file has created the file in your Google Drive folder then upon deleting the file it would be restored to his My Drive folder.