When trying to remove a publication from MSSQL Server 2014, I initially ran the


exec sp_removedbreplication @dbname='MyDATABSENAME',

                             @type='tran'


 query with the appropriate parameters, but noticed that the replication monitor still displayed the previous replication. To resolve this issue, I took the following steps:

I deleted all SQL Server jobs related to the publication.
I ran the

EXEC sp_removedistpublisherdbreplication @publisher = 'YOUR-PC-OR-SERVER-NAME', 

                                          @publisher_db = 'YOUR-DATABASE-NAME' 

query in the distribution database, specifying the publisher and publisher database.
By taking these steps, the previous replication was successfully removed from the replication monitor.

and it works!!! 

It's worth noting that sp_removedistpublisherdbreplication is a stored procedure that removes the publisher and its associated metadata from the distribution database, it's used when the publisher is no longer available or you want to remove the publisher from the replication topology.