user and dev delete functions