# Remove named graphs with bad names

**URL:** <https://community.stardog.com/t/remove-named-graphs-with-bad-names/1041>\
**Category:** Support\
**Created:** [May 15, 2018, 6:21pm UTC](https://community.stardog.com/t/remove-named-graphs-with-bad-names/1041 "2018-05-15T18:21:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierluigi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pierluigi/32/472_2.png) [@pierluigi](https://community.stardog.com/u/pierluigi)\
**Post date:** [May 15, 2018, 6:21pm UTC](https://community.stardog.com/t/remove-named-graphs-with-bad-names/1041/1 "2018-05-15T18:21:28Z")

</div>

I have a db in which some named graphs were created with problematic names (I don’t know if all of these names are strictly speaking ill-formed as IRIs or as named graph names or… They suffer from the same problem which is:)

Now these graphs cannot be removed by doing a standard DROP GRAPH somename. These were originally created through API in early experiments. Some example of such names:

```auto
 <http://v.co/cg
 <http://v.co/cg/xtract-20180215-191048>
 :vco:cg:xtract-20180216-000616

```

(NOTE: these are the “bare” names without the IRI delimiting ‘\<’, ‘\>’; iow, you need to wrap the angle brackets around these strings to get the actual IRI). When I do

```auto
drop graph <oneofthesenames>

```

I get either a plain syntax error (e.g. with the first name in the list) or an “internal server error” (e.g., with the last name in the list). Is there a way to delete these objects?

Thanks  
Pierluigi

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 29, 2018, 6:21pm UTC](https://community.stardog.com/t/remove-named-graphs-with-bad-names/1041/2 "2018-05-29T18:21:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
