private int deleteFileFromStorage(String fileName, boolean deleteMaster,
            boolean justTest) {
        Storage tempStorage = null;
        File tempFile = null;
        int msg = DataGridTags.FILE_DELETE_ERROR;

        for (int i = 0; i < storageList_.size(); i++) {
            tempStorage = (Storage) storageList_.get(i);
            tempFile = tempStorage.getFile(fileName);
            if (tempFile != null) {
                // if want to delete a master copy, then you can't
                if (tempFile.isMasterCopy() && !deleteMaster) {
                    msg = DataGridTags.FILE_DELETE_ERROR_ACCESS_DENIED;
                }
                // if a file is a replica, but want to delete a master one
                else if (!tempFile.isMasterCopy() && deleteMaster) {
                    msg = DataGridTags.FILE_DELETE_ERROR_ACCESS_DENIED;
                } else {
                    // if you want to actually delete this file
                    if (!justTest) {
                        tempStorage.deleteFile(fileName, tempFile);
                    }
                    msg = DataGridTags.FILE_DELETE_SUCCESSFUL;
                }
            }
        } // end for

        return msg;
    }