def METHOD_NAME(self):
    # delete a file first
    seafile_api.del_file(self.repo_id, '/',
                         json.dumps([self.file_name]),
                         self.user_name)
    self.login_as(self.user)
    # get trash item count
    resp = self.client.get(self.url)
    json_resp = json.loads(resp.content)
    assert len(json_resp['data']) > 0
    # clean library trash
    resp = self.client.delete(self.url)
    self.assertEqual(200, resp.status_code)
    # get trash item count again
    resp = self.client.get(self.url)
    json_resp = json.loads(resp.content)
    assert len(json_resp['data']) == 0