Can I presume, since you mentioned a table, you're planning to create a small dinette in that space and not a bunk (that's what the ledge is for)...?
Some people use the ledge to attach some kind of shelf or storage cubbies- handy to have near the table. Some use it as an attachment point for the table. Or just cut it off.
It may depend on whether it is still solidly attached to the shell.
Here's a bookshelf: