{"size": 514, "ext": "js", "max_stars_repo_path": "react_client/src/services/DeleteData.js", "max_stars_repo_name": "FilipKrat/rfidinventory", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "react_client/src/services/DeleteData.js", "max_issues_repo_name": "FilipKrat/rfidinventory", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "react_client/src/services/DeleteData.js", "max_forks_repo_name": "FilipKrat/rfidinventory", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.4761904762, "max_line_length": 51, "alphanum_fraction": 0.5077821012}
export function DeleteData(type, user_token){
  let BaseURL = '/';
  return new Promise((resolve, reject) => {
    fetch(BaseURL+type,{
      method: 'DELETE',
      headers: {
                'Accept': 'application/json',
                'Content-Type': 'application/json',
                'x-access-token': user_token,
                }
    })
    .then((response) => response.json())
    .then((responseJson) => {
      resolve(responseJson);
    })
    .catch((error) => {
      reject(error);
    });
  });
}
