def METHOD_NAME(client):
    mindsdb_data = {
        'database': {
            'name': 'test_delete',
            'engine': 'postgres',
            'parameters': {}
        }
    }
    # Delete newly created DB.
    client.post('/api/databases', json=mindsdb_data, follow_redirects=True)
    response = client.get('/api/databases/test_delete', follow_redirects=True)
    assert '200' in response.status
    response = client.delete('/api/databases/test_delete', follow_redirects=True)
    # Make sure we return NO_CONTENT status since we don't return the deleted DB.
    assert '204' in response.status
    response = client.get('/api/databases/test_delete', follow_redirects=True)
    assert '404' in response.status